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 }} 篇文章

+ + +
diff --git a/layouts/partials/custom_body.html b/layouts/partials/custom_body.html new file mode 100644 index 0000000..529771a --- /dev/null +++ b/layouts/partials/custom_body.html @@ -0,0 +1,5 @@ + + + diff --git a/layouts/partials/custom_head.html b/layouts/partials/custom_head.html new file mode 100644 index 0000000..4ea89a1 --- /dev/null +++ b/layouts/partials/custom_head.html @@ -0,0 +1,11 @@ + + + + diff --git a/layouts/partials/favicon.html b/layouts/partials/favicon.html new file mode 100644 index 0000000..ccf1a5d --- /dev/null +++ b/layouts/partials/favicon.html @@ -0,0 +1,2 @@ +{{ with .Site.Params.favicon }} +{{ end }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..cc5e269 --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1 @@ +

© 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 @@ + +

{{ .Site.Title }}

+
+ diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html new file mode 100644 index 0000000..5b9d089 --- /dev/null +++ b/layouts/partials/nav.html @@ -0,0 +1,7 @@ +首页 +{{ range .Site.Menus.main }} +{{ .Name }} +{{ end }} +{{ with .Site.GetPage "/blog" }} +Blog +{{ end }} diff --git a/layouts/partials/seo_tags.html b/layouts/partials/seo_tags.html new file mode 100644 index 0000000..06e90cd --- /dev/null +++ b/layouts/partials/seo_tags.html @@ -0,0 +1,15 @@ + + + + + + + + +{{ template "_internal/opengraph.html" . }} + + +{{ template "_internal/twitter_cards.html" . }} + + +{{ template "_internal/schema.html" . }} diff --git a/layouts/partials/style.html b/layouts/partials/style.html new file mode 100644 index 0000000..f108da6 --- /dev/null +++ b/layouts/partials/style.html @@ -0,0 +1,531 @@ + diff --git a/layouts/partials/toc.html b/layouts/partials/toc.html new file mode 100644 index 0000000..66936a4 --- /dev/null +++ b/layouts/partials/toc.html @@ -0,0 +1,91 @@ +{{/* 根据页面内容生成目录 */}} +{{ if and .TableOfContents (ne .TableOfContents "") }} + + + +{{ end }} \ No newline at end of file -- cgit v1.2.3