From 1e5f8eb33bc41cb59faf059e83701152785cabea Mon Sep 17 00:00:00 2001 From: yingyu5658 Date: Sat, 13 Dec 2025 08:33:08 +0800 Subject: Initial commit --- layouts/partials/archives-list.html | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 layouts/partials/archives-list.html (limited to 'layouts/partials/archives-list.html') diff --git a/layouts/partials/archives-list.html b/layouts/partials/archives-list.html new file mode 100644 index 0000000..b9767f7 --- /dev/null +++ b/layouts/partials/archives-list.html @@ -0,0 +1,30 @@ +{{ $allPages := where .Site.RegularPages "Type" "in" (slice "posts" "blog") }} +{{ $visiblePages := where $allPages "Params.hidden" "!=" true }} +{{ $pagesToShow := $visiblePages.ByDate.Reverse }} + +
+

归档

+ +

共有 {{ len $pagesToShow }} 篇文章

+ + +
-- cgit v1.2.3