summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorverdant <i@glowisle.me>2026-03-25 22:53:21 +0800
committerverdant <i@glowisle.me>2026-03-25 22:53:21 +0800
commit2e4a0fee929f595eb180cce8583be7985e4b5331 (patch)
tree606d62ad64528e3cc33f3432cf77203c5c50aebb
parent03757128df8774136f68acddcd346ffa3ee275fe (diff)
downloadblog-2e4a0fee929f595eb180cce8583be7985e4b5331.tar.gz
blog-2e4a0fee929f595eb180cce8583be7985e4b5331.zip
style: refactor index page
-rw-r--r--content/_index.md2
-rw-r--r--content/rss.md1
-rw-r--r--layouts/_default/baseof.html11
-rw-r--r--layouts/_default/single.html2
-rw-r--r--layouts/partials/style.html32
-rw-r--r--layouts/shortcodes/recent-posts.html2
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 @@
<!doctype html>
+<GNU>
+ ______ ____ _____ _____ _____ _________ _______ _ __ _ _
+ .' ___ ||_ \|_ _||_ _||_ _| | _ _ | |_ __ \ / |_ [ | / |_ / |_
+/ .' \_| | \ | | | | | | |_/ | | \_|.---. _ .--. _ .--. _ __ | |__) |_ .--. ,--. `| |-'.---. | |--. .---.`| |-'`| |-'
+| | ____ | |\ \| | | ' ' | | | / /__\\[ `/'`\][ `/'`\][ \ [ ] | ___/[ `/'`\]`'_\ : | | / /'`\] | .-. |/ /__\\| | | |
+\ `.___] |_| |_\ |_ \ \__/ / _| |_ | \__., | | | | \ '/ / _| |_ | | // | |,| |,| \__. | | | || \__.,| |, | |,
+ `._____.'|_____|\____| `.__.' |_____| '.__.'[___] [___] [\_: / |_____| [___] \'-;__/\__/'.___.'[___]|__]'.__.'\__/ \__/
+ \__.'
+
+ "A man is not dead while his name is still spoken."
+</GNU>
<html lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en-US{{ end }}">
<head>
<meta http-equiv="X-Clacks-Overhead" content="GNU Terry Pratchett" />
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" }}
<header>
<a href="{{ "" | relURL }}" class="title">
- <p class="site-title">{{ .Site.Title }}<p>
+ <p class="site-title">{{ .Site.Title }}</p>
</a>
<nav>{{- partial "nav.html" . -}}</nav>
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 @@
<style>
+
:root {
- --width-max: 680px;
+ --width-max: 720px;
--font-secondary: monospace;
- --font-size-primary: 1rem;
- --font-size-secondary: .85rem;
+ --font-size-primary: 1.1rem;
+ --font-size-secondary: .83rem;
--body-bg-color: #fbfbf6;
--bold-text-color: #222;
--body-text-color: #444;
@@ -33,6 +34,14 @@
margin-top: 1.6rem;
}
+.e-content h2,
+.e-content h3,
+.e-content h4,
+.e-content h5,
+.e-content h6 {
+ font-weight: 400;
+}
+
h1, h2 {
margin: 0;
padding: 0;
@@ -79,7 +88,6 @@ h1, h2 {
body {
- font-family: var(--font-primary);
font-size: var(--font-size-primary);
margin: auto;
padding: 20px;
@@ -202,14 +210,16 @@ footer {
.post-title a.item-link {
-font-size: 1.5rem;
+font-size: 1.8rem;
+}
+
+h1.post-title {
+ margin-top: 0;
}
.post-title {
margin: 0 !important;
display: inline-block;
- font-size: 1.5rem !important;
-
}
.post-date, .post-date-shortcode {
@@ -781,15 +791,13 @@ color: var(--body-text-color);
}
.post-title {
- margin: 20px 0 !important;
- font-size: 1.5rem !important;
+ font-size: 26.4px;
line-height: 1.4 !important;
display: block !important;
padding: 0 !important;
}
.post-title a {
- margin: 0 !important;
display: inline-block !important;
padding: 0 !important;
}
@@ -805,4 +813,8 @@ header {
display: block;
}
+gnu {
+ display: none;
+}
+
</style>
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 }}
<style>
.recent-list {