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/_default/_markup/render-codeblock.html | 1 - layouts/_default/_markup/render-heading.html | 3 --- layouts/_default/baseof.html | 15 --------------- layouts/_default/list.html | 10 ---------- layouts/_default/single.html | 16 ---------------- layouts/_default/taxonomy.html | 10 ---------- layouts/_default/term.html | 13 ------------- layouts/_markup/render-codeblock.html | 1 + layouts/_markup/render-heading.html | 3 +++ layouts/_partials/footer.html | 10 ++++++++++ layouts/_partials/head.html | 21 +++++++++++++++++++++ layouts/_partials/header.html | 10 ++++++++++ layouts/_partials/tags.html | 6 ++++++ layouts/baseof.html | 15 +++++++++++++++ layouts/home.html | 14 ++++++++++++++ layouts/index.html | 14 -------------- layouts/list.html | 10 ++++++++++ layouts/page/single.html | 1 - layouts/partials/footer.html | 10 ---------- layouts/partials/head.html | 21 --------------------- layouts/partials/header.html | 10 ---------- layouts/partials/tags.html | 6 ------ layouts/single.html | 17 +++++++++++++++++ layouts/special.html | 1 + layouts/taxonomy.html | 10 ++++++++++ layouts/term.html | 13 +++++++++++++ 26 files changed, 131 insertions(+), 130 deletions(-) delete mode 100644 layouts/_default/_markup/render-codeblock.html delete mode 100644 layouts/_default/_markup/render-heading.html delete mode 100644 layouts/_default/baseof.html delete mode 100644 layouts/_default/list.html delete mode 100644 layouts/_default/single.html delete mode 100644 layouts/_default/taxonomy.html delete mode 100644 layouts/_default/term.html create mode 100644 layouts/_markup/render-codeblock.html create mode 100644 layouts/_markup/render-heading.html 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 create mode 100644 layouts/baseof.html create mode 100644 layouts/home.html delete mode 100644 layouts/index.html create mode 100644 layouts/list.html delete mode 100644 layouts/page/single.html delete mode 100644 layouts/partials/footer.html delete mode 100644 layouts/partials/head.html delete mode 100644 layouts/partials/header.html delete mode 100644 layouts/partials/tags.html create mode 100644 layouts/single.html create mode 100644 layouts/special.html create mode 100644 layouts/taxonomy.html create mode 100644 layouts/term.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 f3912ad..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 deleted file mode 100644 index d49699e..0000000 --- a/layouts/_default/_markup/render-heading.html +++ /dev/null @@ -1,3 +0,0 @@ - - {{ .Text }} - diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html deleted file mode 100644 index eb8ea10..0000000 --- a/layouts/_default/baseof.html +++ /dev/null @@ -1,15 +0,0 @@ - - - - {{ partial "head.html" . }} {{ range .AlternativeOutputFormats -}} {{ printf - ` - - ` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} {{ end -}} - - - - {{ partial "header.html" .Site }} -
{{ block "main" . }}{{ end }}
- {{ partial "footer.html" . }} - - diff --git a/layouts/_default/list.html b/layouts/_default/list.html deleted file mode 100644 index ea76a24..0000000 --- a/layouts/_default/list.html +++ /dev/null @@ -1,10 +0,0 @@ -{{ define "main" }} -

{{ .Title }}

- -{{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html deleted file mode 100644 index 3a5063f..0000000 --- a/layouts/_default/single.html +++ /dev/null @@ -1,16 +0,0 @@ -{{ define "main" }} -
-
-

{{ .Title }}

- -
- {{ if .Params.toc }} - - - {{ end }} {{ .Content }} -
-{{ partial "tags.html" . }} {{ end }} diff --git a/layouts/_default/taxonomy.html b/layouts/_default/taxonomy.html deleted file mode 100644 index 9828f28..0000000 --- a/layouts/_default/taxonomy.html +++ /dev/null @@ -1,10 +0,0 @@ -{{ define "main" }} -

{{ .Title }}

- -{{ end }} diff --git a/layouts/_default/term.html b/layouts/_default/term.html deleted file mode 100644 index 35ef1de..0000000 --- a/layouts/_default/term.html +++ /dev/null @@ -1,13 +0,0 @@ -{{ define "main" }} -

{{ .Title }}

- -{{ end }} diff --git a/layouts/_markup/render-codeblock.html b/layouts/_markup/render-codeblock.html new file mode 100644 index 0000000..f3912ad --- /dev/null +++ b/layouts/_markup/render-codeblock.html @@ -0,0 +1 @@ +
{{ (transform.HighlightCodeBlock .).Inner }}
diff --git a/layouts/_markup/render-heading.html b/layouts/_markup/render-heading.html new file mode 100644 index 0000000..d49699e --- /dev/null +++ b/layouts/_markup/render-heading.html @@ -0,0 +1,3 @@ + + {{ .Text }} + 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 }} diff --git a/layouts/baseof.html b/layouts/baseof.html new file mode 100644 index 0000000..eb8ea10 --- /dev/null +++ b/layouts/baseof.html @@ -0,0 +1,15 @@ + + + + {{ partial "head.html" . }} {{ range .AlternativeOutputFormats -}} {{ printf + ` + + ` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} {{ end -}} + + + + {{ partial "header.html" .Site }} +
{{ block "main" . }}{{ end }}
+ {{ partial "footer.html" . }} + + diff --git a/layouts/home.html b/layouts/home.html new file mode 100644 index 0000000..8422313 --- /dev/null +++ b/layouts/home.html @@ -0,0 +1,14 @@ +{{ define "main" }} {{ .Content }} {{ with (where site.RegularPages +"Params.hidden" "ne" true) }} +

Posts

+ +{{ end }} {{ end }} diff --git a/layouts/index.html b/layouts/index.html deleted file mode 100644 index 8422313..0000000 --- a/layouts/index.html +++ /dev/null @@ -1,14 +0,0 @@ -{{ define "main" }} {{ .Content }} {{ with (where site.RegularPages -"Params.hidden" "ne" true) }} -

Posts

- -{{ end }} {{ end }} diff --git a/layouts/list.html b/layouts/list.html new file mode 100644 index 0000000..ea76a24 --- /dev/null +++ b/layouts/list.html @@ -0,0 +1,10 @@ +{{ define "main" }} +

{{ .Title }}

+ +{{ end }} diff --git a/layouts/page/single.html b/layouts/page/single.html deleted file mode 100644 index d975ecb..0000000 --- a/layouts/page/single.html +++ /dev/null @@ -1 +0,0 @@ -{{ define "main" }} {{ .Content }} {{ end }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html deleted file mode 100644 index 52c7a99..0000000 --- a/layouts/partials/footer.html +++ /dev/null @@ -1,10 +0,0 @@ - diff --git a/layouts/partials/head.html b/layouts/partials/head.html deleted file mode 100644 index 2fe366d..0000000 --- a/layouts/partials/head.html +++ /dev/null @@ -1,21 +0,0 @@ - - -{{ 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 deleted file mode 100644 index bf7f2f2..0000000 --- a/layouts/partials/header.html +++ /dev/null @@ -1,10 +0,0 @@ -
-

{{.Title}}

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

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

-{{ end }} diff --git a/layouts/single.html b/layouts/single.html new file mode 100644 index 0000000..14350a0 --- /dev/null +++ b/layouts/single.html @@ -0,0 +1,17 @@ +{{ define "main" }} +
+
+

{{ .Title }}

+ +
+ {{ if .Params.toc }} + + + {{ end }} {{ .Content }} +
+{{ partial "tags.html" . }} +{{ end }} diff --git a/layouts/special.html b/layouts/special.html new file mode 100644 index 0000000..d975ecb --- /dev/null +++ b/layouts/special.html @@ -0,0 +1 @@ +{{ define "main" }} {{ .Content }} {{ end }} diff --git a/layouts/taxonomy.html b/layouts/taxonomy.html new file mode 100644 index 0000000..9828f28 --- /dev/null +++ b/layouts/taxonomy.html @@ -0,0 +1,10 @@ +{{ define "main" }} +

{{ .Title }}

+ +{{ end }} diff --git a/layouts/term.html b/layouts/term.html new file mode 100644 index 0000000..35ef1de --- /dev/null +++ b/layouts/term.html @@ -0,0 +1,13 @@ +{{ define "main" }} +

{{ .Title }}

+ +{{ end }} -- cgit 1.4.1