Added latest-posts.html.twig

This commit is contained in:
Oliver Davies 2015-09-27 14:00:08 +01:00
parent 06eb623c3a
commit 920227a2e4

View file

@ -0,0 +1,5 @@
<div class="list-group">
{% for post in data.posts[0:number_of_posts|default(5)] %}
<a href="{{ post.url }}" class="list-group-item">{{ post.title }}</a>
{% endfor %}
</div>