From 54e4a732484c120d9f95fe3451da932859cf7473 Mon Sep 17 00:00:00 2001 From: wires Date: Tue, 29 Jul 2025 14:37:32 -0400 Subject: fix stuff for new version of hugo --- layouts/_partials/footer.html | 10 ++++++++++ layouts/_partials/head.html | 21 +++++++++++++++++++++ layouts/_partials/header.html | 10 ++++++++++ layouts/_partials/tags.html | 6 ++++++ 4 files changed, 47 insertions(+) create mode 100644 layouts/_partials/footer.html create mode 100644 layouts/_partials/head.html create mode 100644 layouts/_partials/header.html create mode 100644 layouts/_partials/tags.html (limited to 'layouts/_partials') diff --git a/layouts/_partials/footer.html b/layouts/_partials/footer.html new file mode 100644 index 0000000..52c7a99 --- /dev/null +++ b/layouts/_partials/footer.html @@ -0,0 +1,10 @@ + diff --git a/layouts/_partials/head.html b/layouts/_partials/head.html new file mode 100644 index 0000000..2fe366d --- /dev/null +++ b/layouts/_partials/head.html @@ -0,0 +1,21 @@ + + +{{ with (or .Description .Site.Params.description) }} + +{{ end }} +{{ with .Keywords }}{{ end }} + + +{{ range slice "style.css" "syntax.css"}} +{{- with resources.Get . }} + {{- if eq hugo.Environment "development" }} + + {{- else }} + {{- with . | minify | fingerprint }} + + {{- end }} + {{- end }} +{{- end }} +{{ end }} +{{ printf "%s | %s" .Title site.Title }} + diff --git a/layouts/_partials/header.html b/layouts/_partials/header.html new file mode 100644 index 0000000..bf7f2f2 --- /dev/null +++ b/layouts/_partials/header.html @@ -0,0 +1,10 @@ +
+

{{.Title}}

+ +
diff --git a/layouts/_partials/tags.html b/layouts/_partials/tags.html new file mode 100644 index 0000000..b464c47 --- /dev/null +++ b/layouts/_partials/tags.html @@ -0,0 +1,6 @@ +{{ with .GetTerms "tags" }} +

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

+{{ end }} -- cgit 1.4.1