diff --git a/_layouts/home.html b/_layouts/home.html index c4609dcc3d..4850fc5681 100644 --- a/_layouts/home.html +++ b/_layouts/home.html @@ -11,7 +11,11 @@

{{ post.title }}

- {{ post.content | strip_html | truncatewords: 30 }} + {% if post.excerpt_separator %} + {{ post.excerpt | strip_html }} + {% else %} + {{ post.content | strip_html | truncatewords: 30 }} + {% endif %}

diff --git a/_posts/2017-03-16-example-content.md b/_posts/2017-03-16-example-content.md index 01e4f050ac..b840c174ed 100644 --- a/_posts/2017-03-16-example-content.md +++ b/_posts/2017-03-16-example-content.md @@ -3,9 +3,10 @@ layout: post title: "Example Content" author: "Chester" tags: Example +excerpt_separator: --- -Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas tincidunt ornare nibh, non elementum augue tempus eget. Pellentesque tempus scelerisque iaculis. Nullam interdum ultricies nibh quis sollicitudin. Donec ornare fermentum facilisis. Ut at sem ac sem imperdiet varius a eget tortor. Nam eu augue eget orci semper maximus in eget augue. Mauris ornare, nisl ut suscipit consectetur, mi quam interdum tellus, at rutrum quam eros ultrices mi. +Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas tincidunt ornare nibh, non elementum augue tempus eget. Pellentesque tempus scelerisque iaculis. Nullam interdum ultricies nibh quis sollicitudin. Donec ornare fermentum facilisis. Ut at sem ac sem imperdiet varius a eget tortor. Nam eu augue eget orci semper maximus in eget augue. Mauris ornare, nisl ut suscipit consectetur, mi quam interdum tellus, at rutrum quam eros ultrices mi. # Headers {% highlight markdown %} diff --git a/_posts/2017-03-29-introducing-tale.md b/_posts/2017-03-29-introducing-tale.md index c234e83b87..a0eadbc527 100644 --- a/_posts/2017-03-29-introducing-tale.md +++ b/_posts/2017-03-29-introducing-tale.md @@ -4,9 +4,10 @@ title: "Introducing Tale" author: "Chester" comments: true tags: Tale +excerpt_separator: --- -Tale is a minimal [Jekyll](https://jekyllrb.com/) theme curated for storytellers. It is designed and developed by [myself](https://github.com/chesterhow/) for a friend who writes short stories. +Tale is a minimal [Jekyll](https://jekyllrb.com/) theme curated for storytellers. It is designed and developed by [myself](https://github.com/chesterhow/) for a friend who writes short stories. ## Tale features - Compatible with GitHub Pages