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/_default/baseof.html | 56 ++++++++++++++++++-------------------------- 1 file changed, 23 insertions(+), 33 deletions(-) (limited to 'layouts/_default/baseof.html') 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" . -}} + -- cgit v1.2.3