diff --git a/_layouts/index.html b/_layouts/index.html index 440048a246ae63c3149221571cf89b9d0e04c6f6..b19a66c3dcb8ae08ee8702ec7568a9f9fc8d0914 100644 --- a/_layouts/index.html +++ b/_layouts/index.html @@ -77,7 +77,7 @@ layout: default <span class="post-date">Published on: {{ post.date | date: '%B %d, %Y' }}</span> <div class="content"> - {{ post.content | truncate: 220 }} <a href="{{ post.url | relative_url }}">(read more)</a> + {{ post.content | strip_html | normalize_whitespace | truncate: 220 }} <a href="{{ post.url | relative_url }}">(read more)</a> </div> </div> {% endfor %}