Fix blog posts page for loop syntax

This commit is contained in:
Leilukin 2025-05-04 21:16:06 +08:00
parent e07a33af41
commit 82abf637e6

View File

@ -24,7 +24,7 @@ eleventyComputed:
<section class="content__section">
<h2>Blog Posts</h2>
<ul class="blog__posts">
{{ for post in postList }}
{{ for post of postList }}
<li class="blog__post">
<h3 class="blog__post--title">
<a href="{{ post.url }}">
@ -37,7 +37,7 @@ eleventyComputed:
<p class="blog__post--time"><time datetime="{{ post.date }}">{{ post.date |> formatDate }}</time></p>
<p>{{ post.data.desc }}</p>
</li>
{{ endfor }}
{{ /for }}
</ul>
{{ include "components/pagination-oldnew.vto" }}