These are chat archives for jescalan/roots

16th
Feb 2016
Chris
@core77
Feb 16 2016 11:45
Why have you guys some devDependencies with exact versions in this https://github.com/carrot/base/blob/master/package.json and some without exact versions? I'm a little confused why they aren't all with exact versions... Thanks!
Adam Argyle
@argyleink
Feb 16 2016 22:33
sup homies, we built a sweet blog with roots https://github.com/intel-android/androidhub, running great, really cool workflow for contributors. BUT, i’m having a really hard time creating author detail pages programatically. all the authors have a yaml file in data/authors and i want to render them each against a layout jade file. This is very similar to what the blog feature does with posts, but I’d like to do it with authors. Ideas on how I can execute this? as authors add themselves to the build system, that detail pages are created?
i wrote a function that renders each author against a layout file in the before hook, but since we have roots records, roots yaml, and roots dynamic content, it’s too much work fo rme to supply the layout with all the locals. it’s like i need to make a roots extension, if i really wanted to do what i need.
Adam Argyle
@argyleink
Feb 16 2016 22:41
almost like this, but not so “post” specific https://github.com/netlify/roots-collections
Jeff Escalante
@jescalan
Feb 16 2016 23:57
can't you use roots-yaml for this?
when a new author is added, trigger a hook with netlify and rebuild
if someone new is added to the authors yaml file, next build they will be in the locals...
I'm probably missing something here though haha
maybe help me a little more getting what you mean?