Skip to content

Commit

Permalink
[fix] [issue #56] fixed the escaped HTML entities
Browse files Browse the repository at this point in the history
Wordpress already provides a truncated summary with a link to the post (Continue reading ->). so there no need to strip the tags, truncate the text and add a link to the post.
  • Loading branch information
madmanmax committed Nov 22, 2014
1 parent 75bf9b0 commit 15fa263
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
</div>
<p class="title">{{ post.title }}</p>
<p class="content">
{{ post.description|striptags|truncate(250) }}
<a href="{{ post.link }}">More</a>
{{ post.description|raw }}
</p>
</div>
{% endfor %}
Expand Down

0 comments on commit 15fa263

Please sign in to comment.