rename posts collection
This commit is contained in:
parent
96e180703b
commit
d9890c51d8
2 changed files with 2 additions and 2 deletions
|
|
@ -43,7 +43,7 @@ dont_show_lang_in_footer: true
|
|||
<div class="recent-posts box">
|
||||
<h2>{{ "recent-posts" | i18n }}</h2>
|
||||
<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>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
# TODO: finish post page
|
||||
tags: post
|
||||
tags: posts
|
||||
---
|
||||
{% extends "_layouts/base.njk" %}
|
||||
{% block content %}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue