From dcee4fe4b15738c30eb3962ff6caa5db8845254c Mon Sep 17 00:00:00 2001 From: wires Date: Mon, 31 Mar 2025 13:46:45 -0400 Subject: theme changes --- layouts/_default/_markup/render-codeblock.html | 1 - layouts/_default/_markup/render-heading.html | 3 ++ layouts/_default/baseof.html | 47 +++++++++++++------------- layouts/partials/head.html | 13 ++----- layouts/partials/tags.html | 7 ++-- 5 files changed, 34 insertions(+), 37 deletions(-) delete mode 100644 layouts/_default/_markup/render-codeblock.html create mode 100644 layouts/_default/_markup/render-heading.html (limited to 'layouts') diff --git a/layouts/_default/_markup/render-codeblock.html b/layouts/_default/_markup/render-codeblock.html deleted file mode 100644 index 9bfc3b1..0000000 --- a/layouts/_default/_markup/render-codeblock.html +++ /dev/null @@ -1 +0,0 @@ -
{{ (transform.HighlightCodeBlock .).Inner }}
diff --git a/layouts/_default/_markup/render-heading.html b/layouts/_default/_markup/render-heading.html new file mode 100644 index 0000000..d49699e --- /dev/null +++ b/layouts/_default/_markup/render-heading.html @@ -0,0 +1,3 @@ + + {{ .Text }} + diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index ecac3b1..0504861 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,29 +1,30 @@ - + - + {{ partial "head.html" . }} - -{{ range .AlternativeOutputFormats -}} -{{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} -{{ end -}} - - - - -
-{{ block "main" . }}{{ end }} -
-{{ partial "footer.html" . }} - +
{{ block "main" . }}{{ end }}
+ {{ partial "footer.html" . }} + diff --git a/layouts/partials/head.html b/layouts/partials/head.html index ce38afc..e09b60c 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -6,16 +6,8 @@ {{ with .Keywords }}{{ end }} -{{- with resources.Get "style.css" }} - {{- if eq hugo.Environment "development" }} - - {{- else }} - {{- with . | minify | fingerprint }} - - {{- end }} - {{- end }} -{{- end }} -{{- with resources.Get "syntax.css" }} +{{ range slice "style.css" "syntax.css"}} +{{- with resources.Get . }} {{- if eq hugo.Environment "development" }} {{- else }} @@ -24,5 +16,6 @@ {{- end }} {{- end }} {{- end }} +{{ end }} {{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s | %s" .Title site.Title }}{{ end }} diff --git a/layouts/partials/tags.html b/layouts/partials/tags.html index 8062534..b464c47 100644 --- a/layouts/partials/tags.html +++ b/layouts/partials/tags.html @@ -1,5 +1,6 @@ {{ with .GetTerms "tags" }} -
-tags: -{{ range $i, $e := . }}{{- if $i -}}, {{ end -}}{{ with $e }}{{lower .Title}}{{end}}{{ end }} +

+ Tags:{{ range $i, $e := . }}{{- if $i -}},{{ end -}}{{ with $e }} + {{lower .Title}}{{end}}{{ end }} +

{{ end }} -- cgit 1.4.1