These are chat archives for jescalan/roots
@javaporter thx, as always …
do you have tips for retrieving linked fields?
@deedubbleyoo looks like the androidhub team uses
moment or at least tried to:
it’s commented out in their layouts though
@tkraak this is the std link to post format:
a(href= post._url), I haven't had to link to authors or categories yet, but that sounds like a common use. I don't know how off the top of my head, it actually sounds like it might be fairly complex (but it's probably not).
The documentation for this stuff is pretty bare-bones, I've been debating about setting up a public repo where there are examples of how to do things like what you're asking.
roots-contentfulroom … let’s see what @jescalan thinks about that
the linked content issue has come up in an issue too:
!=to call it as a function in your jade templates
viewsfolder that only holds template files (not rendered in and of itself) and then to have the entire site (home page and all) compiled from another folder using the dynamic-content addon? I just tried moving a couple of things around and it didn't seem to like it
views/folder be entirely template logic stuff and build everything with Yaml frontmatter and have it dynamically generated. That would then allow me to have a big json file with every page of the site in it which I could use for some speedy rendering
views/and I try to do it the other way, the index doesn't get rendered out at all :S (and the json output is either an empty object or
- for post in contentful.featuredStories.order='fields.title'
for post in sortBy(contentful.whatever, 'title')
app.coffeewhich uses Array.sort to do what you want