Default Blog Homepage Template Metadata failure?
Using the default blog template Metadata in my post works as expected eg. {{entry.metadata.title}}
But when looking at the homepage, the title of the post is blank?
Looks like it only fails with the blog template If I preview with all of the other templates it works
Metadata not displayed here: https://blog.tyro.me/
Metadata displays fine on the actual post: https://blog.tyro.me/2022/09/19/metadata-test-title
Answered 2 years ago · Edit answerLooks like it doesn't work on any template:
- http://preview-of-magazine-on-tyrome.blot.im
- https://preview-of-blank-on-tyrome.blot.im
- http://preview-of-rosa-on-tyrome.blot.im
It doesn't seem to handle circular referencing very well.
I would send this bug to support.
Answered 2 years ago · Edit answer{{metadata}}
is a property of both {{entry}}
and {{entries}}
. This will work on your index page (entries.html), which loads {{entries}}
:
{{#entries}}
...
{{metadata.title}}
...
{{/entries}}
This will work on your permalink page for an entry (entry.html) which loads {{entry}}
:
{{#entry}}
...
{{metadata.title}}
...
{{/entry}}
Does that help? Please let me know if you have any questions about this or anything else.
Answered 2 years ago · Edit answerSo, to make it work on the index page, do I need to fork the blog template and make modifications?
I was hoping to avoid getting into that.
Answered 2 years ago · Edit answer