Skip to content

v1.4.0

Compare
Choose a tag to compare
@nicoelayda nicoelayda released this 19 Sep 18:38
· 45 commits to master since this release

What's New

Truncated post previews

Celeste now supports truncated blog post previews. When enabled, the blog page will only show the first paragraph of the excerpt, with a Read more link to the full post.

How to enable truncated post previews

This can be enabled by changing this setting in _config.yml:

blog
  truncated_preview: true

This enables truncated previews for all blog posts by default.

If you want to enable truncated post previews for specific posts only, add this to the front matter of your post:

truncated_preview: true

See _posts/2014-01-01-example-content.md for an example.

This also works in reverse - if you want to disable truncated post previews for specific posts only, set the following in the post's front matter:

truncated_preview: false

If you have both settings in _config.yml and the post's front matter, the post's setting is prioritised.

Customising previews

By default, Celeste will only show the first paragraph of content in the post. If you want to customise this behaviour, add this to the post's front matter:

excerpt_separator: <!--more-->

Then, in your post's content, add this line where you want the preview to be cut off:

<!--more-->

For more info, see the post excerpts section of the Jekyll documentation.