Blot

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

Asked 4 years ago Edit
8 replies

What is your blog URL?

4 years ago Edit

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

4 years ago Edit

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.

4 years ago Edit

How do you send a bug to support?

4 years ago Edit

Email: contact@blot.im

4 years ago Edit

{{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.

4 years ago Edit

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.

4 years ago Edit

Never mind

4 years ago Edit

Your reply