Revert to using itemLimit fileter for latest changelog on home page

This commit is contained in:
Leilukin 2025-05-06 07:41:33 +08:00
parent b5e48324f6
commit c9d08b2ef1

View File

@ -51,7 +51,7 @@ eleventyComputed:
<section class="content__section">
<h2>What is New?</h2>
<div class="text-box">
{{ for log of collections["changelogs"] |> toReversed |> slice(0, 1) }}
{{ for log of collections["changelogs"] |> toReversed |> itemLimit(1) }}
<h3>{{ log.data.title }}</h3>
{{ log.content }}
{{ /for }}