replace post.content with post.excerpt in index page

This commit is contained in:
Dean Attali 2016-10-04 19:43:33 -07:00 committed by GitHub
parent 1b550134f1
commit dfb1c61917
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ subtitle: This is where I will tell my friends way too much about me
</p>
<div class="post-entry">
{% assign cleaned_content = post.content | strip_html | xml_escape %}
{% assign cleaned_content = post.excerpt | strip_html | xml_escape %}
{% assign truncated_content = cleaned_content | truncatewords: 50 %}
{% if truncated_content == cleaned_content %}
{{ cleaned_content }}