Blot

Using {{{teaser}}} and {{more}}

This guide explains how to control the preview length shown on your homepage or other entry lists.

How it works

  • {{{body}}} renders the full entry body.
  • {{{teaser}}} renders the entry title and teaser text.
  • {{{teaserBody}}} renders only the teaser text (without the title).

By default, Blot automatically picks a teaser from the beginning of your post. To set where it ends, insert {{more}} in your post.

# My post title

This paragraph appears in the preview.

{{more}}

This text appears only on the full post page.

Limit the index page preview length

To limit the post preview displayed on the index page, replace {{{body}}} with {{{teaserBody}}} in index.html or entries.html.

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

If you want the title included as part of the teaser block, use {{{teaser}}} instead.

More information