Your sites Log in Sign up Menu

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


2 years ago, 8 replies   Improve this question

What is your blog URL?

Answered 2 years ago · Improve this answer

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 · Improve this answer

Looks like it doesn't work on any template:

It doesn't seem to handle circular referencing very well.

I would send this bug to support.

Answered 2 years ago · Improve this answer

How do you send a bug to support?

Answered 2 years ago · Improve this answer

Email: contact@blot.im

Answered 2 years ago · Improve this 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 · Improve this answer

So, 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 · Improve this answer

Never mind

Answered 2 years ago · Improve this answer