blog/themes/cmd/layout/includes/recent-posts.njk
thisLight 781759d545 move cmd to nunjucks & update hexo to 6.0.0
Other changes:
* minor fix to the display for code blocks
* remove floating when hover on cards
* replace the list of tags and categories to the index page one
* small change on the title of tags' and categories' pages
2021-12-31 18:07:40 +08:00

15 lines
395 B
Text

{% 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 %}