+ {{ post.title }} +
+{% if post.excerpt %} + {{ post.excerpt | markdownify | strip_html }} + {% else %} + {{ post.content | markdownify | strip_html | truncate: 160 }} + {% endif %}
+diff --git a/_layouts/home.html b/_layouts/home.html index 5e71126..a06e091 100644 --- a/_layouts/home.html +++ b/_layouts/home.html @@ -2,4 +2,27 @@ layout: default --- -{{ content }} +
{% if post.excerpt %} + {{ post.excerpt | markdownify | strip_html }} + {% else %} + {{ post.content | markdownify | strip_html | truncate: 160 }} + {% endif %}
+{% if post.excerpt %} - {{ post.excerpt | markdownify | strip_html }} - {% else %} - {{ post.content | markdownify | strip_html | truncate: 160 }} - {% endif %}
-