Tagged “excerpts”
Excerpts for Eleventy, by Keith Carangelo
Recently I updated this website’s git repository README to include a summary of my approach to supporting post excerpts.
I define an initial part of a post as the excerpt by adding a separator string between it and the remaining content. Then in my posts list I grab 11ty’s
post.page.excerpt
and pass that through a custom markdown-parsing filter.
This works pretty well but sometimes it’s a bit inflexible that the excerpt has to be part of the post. Sometimes you might want to say something different, or shorter and snappier in the excerpt.
See all tags.