From 2e4a0fee929f595eb180cce8583be7985e4b5331 Mon Sep 17 00:00:00 2001 From: verdant Date: Wed, 25 Mar 2026 22:53:21 +0800 Subject: style: refactor index page --- content/_index.md | 2 +- content/rss.md | 1 + layouts/_default/baseof.html | 11 +++++++++++ layouts/_default/single.html | 2 +- layouts/partials/style.html | 32 ++++++++++++++++++++++---------- layouts/shortcodes/recent-posts.html | 2 +- 6 files changed, 37 insertions(+), 13 deletions(-) diff --git a/content/_index.md b/content/_index.md index 3396422..2629ea7 100644 --- a/content/_index.md +++ b/content/_index.md @@ -4,7 +4,7 @@ title: "映屿" --- -Hi, 我是 Verdant。我是一名学生、GNU/Linux 和编程爱好者。这里是我的博客。如果你喜欢我的文字,可以通过 [RSS](/rss) 来订阅。 +Hi, 我是 Verdant,一名学生、GNU/Linux 和编程爱好者。这里是我的博客。如果你喜欢我的文字,可以通过 [RSS](/rss) 订阅。 --- diff --git a/content/rss.md b/content/rss.md index 55df297..ba48970 100644 --- a/content/rss.md +++ b/content/rss.md @@ -3,6 +3,7 @@ date: '2026-01-17T23:30:49+08:00' draft: false comments: false showMeta: false +title: "RSS" --- ## 订阅所有文章 diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index aad83c9..ebc6a41 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,4 +1,15 @@ + + ______ ____ _____ _____ _____ _________ _______ _ __ _ _ + .' ___ ||_ \|_ _||_ _||_ _| | _ _ | |_ __ \ / |_ [ | / |_ / |_ +/ .' \_| | \ | | | | | | |_/ | | \_|.---. _ .--. _ .--. _ __ | |__) |_ .--. ,--. `| |-'.---. | |--. .---.`| |-'`| |-' +| | ____ | |\ \| | | ' ' | | | / /__\\[ `/'`\][ `/'`\][ \ [ ] | ___/[ `/'`\]`'_\ : | | / /'`\] | .-. |/ /__\\| | | | +\ `.___] |_| |_\ |_ \ \__/ / _| |_ | \__., | | | | \ '/ / _| |_ | | // | |,| |,| \__. | | | || \__.,| |, | |, + `._____.'|_____|\____| `.__.' |_____| '.__.'[___] [___] [\_: / |_____| [___] \'-;__/\__/'.___.'[___]|__]'.__.'\__/ \__/ + \__.' + + "A man is not dead while his name is still spoken." + diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 1cf2f18..d7b9807 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,7 +1,7 @@ {{ define "main" }}
-

{{ .Site.Title }}

+

{{ .Site.Title }}

diff --git a/layouts/partials/style.html b/layouts/partials/style.html index 0c11755..4b29810 100644 --- a/layouts/partials/style.html +++ b/layouts/partials/style.html @@ -1,9 +1,10 @@ diff --git a/layouts/shortcodes/recent-posts.html b/layouts/shortcodes/recent-posts.html index 55f7cd4..ce5fba0 100644 --- a/layouts/shortcodes/recent-posts.html +++ b/layouts/shortcodes/recent-posts.html @@ -1,5 +1,5 @@ {{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }} -{{ $recent := first 12 $pages.ByDate.Reverse }} +{{ $recent := first 10 $pages.ByDate.Reverse }}