From 84d972cfebe4810bb0fc6055868fb18d3859dd6f Mon Sep 17 00:00:00 2001 From: Leilukin Date: Mon, 5 May 2025 21:30:02 +0800 Subject: [PATCH] Use JavaScript slice function for home page changelog --- src/index.vto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.vto b/src/index.vto index 5844f4e3..17a58b13 100644 --- a/src/index.vto +++ b/src/index.vto @@ -51,7 +51,7 @@ eleventyComputed:

What is New?

- {{ for log of collections["changelogs"] |> toReversed |> itemLimit(1) }} + {{ for log of collections["changelogs"] |> toReversed |> slice(0, 1) }}

{{ log.data.title }}

{{ log.content }} {{ /for }}