How do I access the author YAML field? I tried "page.author" and it doesn't work.
Community guidelines
Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.
Archive
I'm talking in the context of making a blog theme... Loosely following the Blog skeleton...
if you have author set in the page headers, and you are trying to access from a Twig template, it would be:
TWIG
{{ page.header.author }}
There is an example of this in the Theme Variable Docs.
Ah, ok! Can I create another field there? Like "description"?
You can create any field you like in the page headers, yes.
OK. Thank you!
Log in to reply.
Suggested topics
| Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| 0 | 1279 | 9 years ago | ||
| 2 | 886 | 9 years ago | ||
| 2 | 4015 | 9 years ago | ||
| 1 | 2891 | 9 years ago | ||
| 3 | 1075 | 9 years ago |