Skip to content

Commit

Permalink
Use excerptHtml (#5)
Browse files Browse the repository at this point in the history
* Update list.html.twig
* Update index.html.twig
  • Loading branch information
ArnaudLigny authored Oct 27, 2017
1 parent eb959aa commit 60e669c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion layouts/_default/list.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<a href="{{ url(post) }}">{{ post.title|e }}</a>
</h1>
<span class="post-date">{{ post.date|date("j M Y") }}</span>
{{ post.content|excerpt }}
{{ post.content|excerptHtml }}
</div>
{% endfor %}
</div>
Expand Down
4 changes: 2 additions & 2 deletions layouts/index.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
<div class="post">
<h1 class="post-title"><a href="{{ url(post) }}">{{ post.title }}</a></h1>
<span class="post-date">{{ post.date|date("j M Y") }}</span>
{{ post.content|excerpt }}
{{ post.content|excerptHtml }}
<footer class="readmore">
<a href="{{ url(post) }}#more">Lire la suite ›</a>
<a href="{{ url(post) }}#more">Read more ›</a>
</footer>
</div>
{% endfor %}
Expand Down

0 comments on commit 60e669c

Please sign in to comment.