quentin.dufour.io/_includes/post-list.html

15 lines
459 B
HTML

<ul id="post-list">
{% for post in paginator.posts %}
{% if post.status == "published" %}
<li>
<a href='{{ post.url }}'><aside class="dates">{{ post.date | date:"%d %b %y" }}</aside></a>
<a href='{{ post.url }}'>{{ post.title }} <h2>{{ post.description }}</h2></a>
</li>
{% endif %}
{% endfor %}
</ul>
{% if paginator.previous_page or paginator.next_page %}
{% include pagination.html %}
{% endif %}