Skip to content

Commit 87b9c97

Browse files
committed
show only excerpt on blog index
1 parent 4e0c1cd commit 87b9c97

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

blog/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ <h2><a href="{{ post.url }}">{{ post.title }}</a></h2>
1010
<span>by <a href="http://github.com/{{post.author}}">{{post.author}}</a>, on {{ post.date | date_to_string }}</span>
1111
</div>
1212

13-
<div class="post-content">
14-
{{ post.content }}
15-
</div>
13+
<p class="post-excerpt">{{ post.content | strip_html | truncatewords: 55 }}</p>
14+
15+
<p><a href="{{ post.url }}">Read more...</a></p>
1616
</article>
1717
{% endfor %}

0 commit comments

Comments
 (0)