From f0b79cf45cf7378bff464fc07ec1de6d317dda68 Mon Sep 17 00:00:00 2001 From: yingyu5658 Date: Sat, 27 Dec 2025 23:42:31 +0800 Subject: chore: Tweak some CSS Style --- content/_index.md | 2 - hugo.toml | 2 +- layouts/_default/baseof.html | 61 ++++++++++++---------------- layouts/partials/header.html | 3 +- layouts/partials/style.html | 25 +++++++++--- layouts/shortcodes/recent-posts.html | 77 ++++++++++++++++++++++++------------ 6 files changed, 99 insertions(+), 71 deletions(-) diff --git a/content/_index.md b/content/_index.md index 79c00f9..488c825 100644 --- a/content/_index.md +++ b/content/_index.md @@ -11,7 +11,5 @@ title: "映屿" 我会在这里写写生活随笔、读书感悟、技术实践和幼稚观点。 --> - --- - {{< recent-posts >}} diff --git a/hugo.toml b/hugo.toml index b36ed61..2f68194 100644 --- a/hugo.toml +++ b/hugo.toml @@ -1,5 +1,5 @@ baseurl = "https://www.glowisle.me/" -title = "🎄 映屿" +title = "映屿" hasCJKLanguage = true enableRobotsTXT = true pagination.pagerSize = 5 diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 8729df0..ea312f9 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,43 +1,34 @@ - + - - - - - - {{- partial "favicon.html" . -}} - {{ .Title }} - - {{- partial "seo_tags.html" . -}} - - - {{ with .OutputFormats.Get "rss" -}} - {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} - {{ end -}} - - {{- partial "style.html" . -}} - - - {{- partial "custom_head.html" . -}} - + {{- partial "custom_head.html" . -}} + - -
- {{- partial "header.html" . -}} -
-
- {{- block "main" . }}{{- end }} -
- + +
{{- partial "header.html" . -}}
+
{{- block "main" . }}{{- end }}
+ - - {{- partial "custom_body.html" . -}} - - + {{- partial "custom_body.html" . -}} + diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 66fa74b..9b49dfb 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,4 +1,5 @@ -

{{ .Site.Title }}

+

{{ .Site.Title }}

+
diff --git a/layouts/partials/style.html b/layouts/partials/style.html index 14b2eea..7d29d4e 100644 --- a/layouts/partials/style.html +++ b/layouts/partials/style.html @@ -1,7 +1,7 @@ +
- {{ if $recent }} {{ range $index, $page := $recent }} - -
- - -

- {{ .Title }} -

-
- {{ end }} {{ else }} -

暂无文章

+ {{ if $recent }} + {{ range $index, $page := $recent }} +
+

+ {{ .Title }} +

+ + +
+ {{ end }} + {{ else }} +
暂无文章
{{ end }}
-- cgit v1.2.3