Blot

Linked title in teaser?

All my posts start with an H1 that provides the post's title. When using a teaser, is it possible to have the H1 link to the blog post?

Asked 2 years ago Edit
3 replies

Yes, like so in your template's entries.html file:

{{#entries}}
<h1><a href="{{{url}}}">{{title}}</a></h1>
{{{teaserBody}}}
{{/entries}}

Does that work?

2 years ago Edit

That works perfectly! Are these sort of things documented anywhere? I wasn't able to find anything, but maybe I'm not looking in the right place.

2 years ago Edit

l found all these variables documented here: https://blot.im/developers/reference

2 years ago Edit

Your reply