blog/themes/cmd/layout/includes/recent-posts.swig

15 lines
395 B
Text
Raw Normal View History

2020-12-27 13:17:29 +00:00
{% if page.posts.length > 0 %}
<div id="recent-posts">
<h1>All Posts</h1>
{% for postItem in page.posts.toArray() %}
<div class="recent-post-item">
<a href="{{ url_for(postItem.path) }}">{{ postItem.title }}</a>
<time datetime="{{ postItem.date.toJSON() }}">
{{ date(postItem.date) }}
</time>
</div>
{% endfor %}
</div>
{% endif %}