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 --- layouts/_default/baseof.html | 61 ++++++++++++---------------- layouts/partials/header.html | 3 +- layouts/partials/style.html | 25 +++++++++--- layouts/shortcodes/recent-posts.html | 77 ++++++++++++++++++++++++------------ 4 files changed, 98 insertions(+), 68 deletions(-) (limited to 'layouts') 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