Added latest-posts.html.twig
This commit is contained in:
parent
06eb623c3a
commit
920227a2e4
5
source/_includes/latest-posts.html.twig
Normal file
5
source/_includes/latest-posts.html.twig
Normal 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>
|
Reference in a new issue