Merge pull request #22 from cantino/patch-1

Strip HTML first before trunctating
This commit is contained in:
Chester How 2018-02-16 11:17:37 +08:00 committed by GitHub
commit cb8fd0f73d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,7 +11,7 @@ layout: default
<div class="catalogue-line"></div>
<p>
{{ post.content | truncatewords: 30 | strip_html }}
{{ post.content | strip_html | truncatewords: 30 }}
</p>
</div>