rename posts collection

This commit is contained in:
yuki 2025-10-18 05:29:12 -03:00
parent 96e180703b
commit d9890c51d8
Signed by: yuki
GPG key ID: 0C98E6FF04EC3915
2 changed files with 2 additions and 2 deletions

View file

@ -43,7 +43,7 @@ dont_show_lang_in_footer: true
<div class="recent-posts box"> <div class="recent-posts box">
<h2>{{ "recent-posts" | i18n }}</h2> <h2>{{ "recent-posts" | i18n }}</h2>
<ul> <ul>
{% for post in collections.post | i18n_filter(5) %} {% for post in collections.posts | i18n_filter(5) %}
<li><p><a href="{{ post.url }}">{{ post.data.title }}</a><br><span class="date"> {{ post.date.toLocaleString("en-GB", {year: 'numeric', month: '2-digit', day: '2-digit'}) }}</span></p></li> <li><p><a href="{{ post.url }}">{{ post.data.title }}</a><br><span class="date"> {{ post.date.toLocaleString("en-GB", {year: 'numeric', month: '2-digit', day: '2-digit'}) }}</span></p></li>
{% endfor %} {% endfor %}
</ul> </ul>

View file

@ -1,6 +1,6 @@
--- ---
# TODO: finish post page # TODO: finish post page
tags: post tags: posts
--- ---
{% extends "_layouts/base.njk" %} {% extends "_layouts/base.njk" %}
{% block content %} {% block content %}