From d91f48c4945acd1b9f76a79d7804580b70b0c2df Mon Sep 17 00:00:00 2001 From: verdant Date: Sun, 31 May 2026 16:36:13 +0800 Subject: Refactor: remove bloated CSS style and nested HTML layouts --- layouts/404.html | 37 +++----------- layouts/_default/#baseof.html# | 29 ----------- layouts/_default/.#baseof.html | 1 - layouts/_default/baseof.html | 56 +++++++++------------ layouts/_default/single.html | 41 +++++++--------- layouts/_default/term.html | 31 +++++------- layouts/archives/single.html | 92 +++++++++++++---------------------- layouts/partials/footer.html | 4 +- layouts/partials/nav.html | 7 +-- layouts/partials/seo_tags.html | 34 +++++-------- layouts/shortcodes/archives-list.html | 35 ------------- 11 files changed, 109 insertions(+), 258 deletions(-) delete mode 100644 layouts/_default/#baseof.html# delete mode 120000 layouts/_default/.#baseof.html delete mode 100644 layouts/shortcodes/archives-list.html (limited to 'layouts') diff --git a/layouts/404.html b/layouts/404.html index 1fac202..bdb53c6 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -1,33 +1,10 @@ -{{ define "title" }} -404 -{{ end }} - +{{ define "title" }}404 Not Found{{ end }} {{ define "main" }} - -
+

🏝️

-

OHHHHH~ -

-

Who lives in a pineapple under the sea?

-
+

404 - NOT FOUND

+

OHHHHH~

+

Who lives in a pineapple under the sea?

+

Back to home

+ {{ end }} diff --git a/layouts/_default/#baseof.html# b/layouts/_default/#baseof.html# deleted file mode 100644 index a6224e8..0000000 --- a/layouts/_default/#baseof.html# +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - {{- partial "favicon.html" . -}} - {{ .Title }} - - {{- partial "seo_tags.html" . -}} - - - - {{ with .OutputFormats.Get "rss" -}} {{ printf ` - - ` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} {{ end -}} - - {{- partial "custom_head.html" . -}} - - - -
{{- block "main" . }}{{- end }}
- - - {{- partial "custom_body.html" . -}} - - diff --git a/layouts/_default/.#baseof.html b/layouts/_default/.#baseof.html deleted file mode 120000 index c37d2f8..0000000 --- a/layouts/_default/.#baseof.html +++ /dev/null @@ -1 +0,0 @@ -verdant@glowisle.178751:1780072799 \ No newline at end of file diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 54fa756..3516304 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,36 +1,26 @@ - - - - - - - - {{- partial "favicon.html" . -}} - {{ .Title }} + + + + + + + {{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ printf "%s | %s" .Title .Site.Title }}{{ end }} + + {{- partial "favicon.html" . -}} + {{- partial "seo_tags.html" . -}} + + + {{- with .OutputFormats.Get "rss" -}} + + {{- end -}} + + {{- partial "custom_head.html" . -}} + - {{- partial "seo_tags.html" . -}} - - - - - {{ with .OutputFormats.Get "rss" -}} {{ printf ` - - ` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} {{ end -}} - - - {{- partial "custom_head.html" . -}} - - - -
{{- block "main" . }}{{- end }}
- - - - {{- partial "custom_body.html" . -}} - + +
{{ block "main" . }}{{ end }}
+ + {{- partial "custom_body.html" . -}} + diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 3006c56..407702a 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,40 +1,33 @@ {{ define "main" }} - -
- {{ .Site.Title }} - +
+ {{ .Site.Title }} +
-
-
-