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 ++
layouts/partials/custom_body.html | 5 +
layouts/partials/custom_head.html | 11 +
layouts/partials/favicon.html | 2 +
layouts/partials/footer.html | 1 +
layouts/partials/header.html | 4 +
layouts/partials/nav.html | 7 +
layouts/partials/seo_tags.html | 15 +
layouts/partials/style.html | 531 ++++++++++++++++++++++++++++++++++++
layouts/partials/toc.html | 91 ++++++
10 files changed, 697 insertions(+)
create mode 100644 layouts/partials/archives-list.html
create mode 100644 layouts/partials/custom_body.html
create mode 100644 layouts/partials/custom_head.html
create mode 100644 layouts/partials/favicon.html
create mode 100644 layouts/partials/footer.html
create mode 100644 layouts/partials/header.html
create mode 100644 layouts/partials/nav.html
create mode 100644 layouts/partials/seo_tags.html
create mode 100644 layouts/partials/style.html
create mode 100644 layouts/partials/toc.html
(limited to 'layouts/partials')
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 }} 篇文章归档
+
+
+ {{ $currentYear := 0 }}
+ {{ range $pagesToShow }}
+ {{ $year := .Date.Year }}
+ {{ if ne $year $currentYear }}
+
+{{ $year }}
+ {{ $currentYear = $year }}
+ {{ end }}
+
© 2024 - 2025 | Made with ❤️ by Verdant.
diff --git a/layouts/partials/header.html b/layouts/partials/header.html new file mode 100644 index 0000000..66fa74b --- /dev/null +++ b/layouts/partials/header.html @@ -0,0 +1,4 @@ + +