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 | 1282 | 9 years ago | ||
| 2 | 889 | 9 years ago | ||
| 2 | 4019 | 9 years ago | ||
| 1 | 2894 | 9 years ago | ||
| 3 | 1078 | 9 years ago |