plainwhite-jekyll icon indicating copy to clipboard operation
plainwhite-jekyll copied to clipboard

More configurable post excerpt

Open mikasjp opened this issue 5 years ago • 2 comments

The user should be able to:

  • specify whether the excerpt should end with the Read more link and its label,
  • configure excerpts length

mikasjp avatar Apr 28 '20 15:04 mikasjp

You can use jekyll's excerpt_separator property to do this. https://jekyllrb.com/docs/posts/#post-excerpts

samarsault avatar May 25 '20 08:05 samarsault

For read more links you can check out my answer at #56

For exerpt length, alternative to excerpt_separator, you could define universal length with liquid tag truncate.

For example in _layout/home.html: 52, edit as follows

{{ post.excerpt | truncate: 50 }}

Then you will get all exerpts truncated to 50 characters, though it may not work well with English as you may get words cut in half at the end of the excerpt.

DotIN13 avatar May 27 '20 14:05 DotIN13