Closed chgeuer closed 9 years ago
Hi @chgeuer you can access individual post metadata from the header using <%= post %>
in your templates. I'm not sure you can do the same thing in a page, what kind of metadata are you putting into the header of your page template that you'd want to access?
(see https://github.com/testdouble/double-takes/blob/master/app/templates/post.us for an example of how we reference post metadata from the yaml header in our company blog).
In the app/templates/wrapper.us file, I can spit out site-wide properties with
Now I'm using lineman.js both with the markdown blog (posts), but I also have markdown files in app/pages/*.md. When rendering the .us files, how can I access data from the page's YAML front matter / header? Trying
JSON.stringify(page)
claims that 'page is not defined'.