From be0d5a49d7c296118600dbc2cea43ea08576ac8f7010b1b146f742fb5f5c3c22 Mon Sep 17 00:00:00 2001 From: Nicholas Johnson <> Date: Thu, 24 Jul 2025 00:00:00 +0000 Subject: Move taxonomy and term layouts to layouts/_default Hugo's template system was reimplemented in Hugo version 0.146.0. "We [the Hugo developers] have aimed to maintain as much backward compatibility as possible by mapping "old to new," but some reported breakages have occurred." Reference: https://gohugo.io/templates/new-templatesystem-overview/ The "mapping "old to new,"" is not yet documented, but moving the taxonomy and term layouts to layouts/_default seems to be sufficient to properly generate this theme on Hugo versions later than 0.146.0. To retain backward compatibility with older Hugo versions, the other recommended changes to the layouts directory are not made. Reference: https://gohugo.io/templates/new-templatesystem-overview/#changes-to-the-layouts-folder --- layouts/taxonomy/taxonomy.atom.xml | 56 ------------------------------- layouts/taxonomy/taxonomy.gemini_atom.xml | 55 ------------------------------ layouts/taxonomy/taxonomy.gmi | 17 ---------- layouts/taxonomy/taxonomy.html | 16 --------- 4 files changed, 144 deletions(-) delete mode 100644 layouts/taxonomy/taxonomy.atom.xml delete mode 100644 layouts/taxonomy/taxonomy.gemini_atom.xml delete mode 100644 layouts/taxonomy/taxonomy.gmi delete mode 100644 layouts/taxonomy/taxonomy.html (limited to 'layouts/taxonomy') diff --git a/layouts/taxonomy/taxonomy.atom.xml b/layouts/taxonomy/taxonomy.atom.xml deleted file mode 100644 index cbcbae8..0000000 --- a/layouts/taxonomy/taxonomy.atom.xml +++ /dev/null @@ -1,56 +0,0 @@ -{{/* Deprecate site.Author.name in favor of site.Params.author.name */}} -{{- $authorName := "" }} -{{- with site.Params.author }} - {{- if reflect.IsMap . }} - {{- with .name }} - {{- $authorName = . }} - {{- end }} - {{- else }} - {{- $authorName = . }} - {{- end }} -{{- else }} - {{- with site.Author.name }} - {{- $authorName = . }} - {{- warnf "The author key in site configuration is deprecated. Use params.author.name instead." }} - {{- end }} -{{- end }} - -{{- /* Deprecate site.Author.email in favor of site.Params.author.email */}} -{{- $authorEmail := "" }} -{{- with site.Params.author }} - {{- if reflect.IsMap . }} - {{- with .email }} - {{- $authorEmail = . }} - {{- end }} - {{- end }} -{{- else }} - {{- with site.Author.email }} - {{- $authorEmail = . }} - {{- warnf "The author key in site configuration is deprecated. Use params.author.email instead." }} - {{- end }} -{{- end -}} - -{{ "" | safeHTML }} - - {{ .Permalink }} - {{ .Site.Title }} - {{ .Date.Format "2006-01-02T15:04:05-0700" | safeHTML }} - - - {{- with $authorName }} - - {{ . }} - {{- with $authorEmail }} - {{ . }}{{ end }} - {{ end }} - Hugo -- gohugo.io - {{ replace .Site.Copyright "{currentYear}" (now.Format "2006") }} - {{ .Site.Params.Description }}{{ range first .Site.Config.Services.RSS.Limit .Data.Pages }} - - {{ .Permalink }} - {{ .Title }} - {{ .Date.Format "2006-01-02T15:04:05-0700" | safeHTML }} - - {{ .Content | html }} - {{ end }} - diff --git a/layouts/taxonomy/taxonomy.gemini_atom.xml b/layouts/taxonomy/taxonomy.gemini_atom.xml deleted file mode 100644 index 76431e3..0000000 --- a/layouts/taxonomy/taxonomy.gemini_atom.xml +++ /dev/null @@ -1,55 +0,0 @@ -{{/* Deprecate site.Author.name in favor of site.Params.author.name */}} -{{- $authorName := "" }} -{{- with site.Params.author }} - {{- if reflect.IsMap . }} - {{- with .name }} - {{- $authorName = . }} - {{- end }} - {{- else }} - {{- $authorName = . }} - {{- end }} -{{- else }} - {{- with site.Author.name }} - {{- $authorName = . }} - {{- warnf "The author key in site configuration is deprecated. Use params.author.name instead." }} - {{- end }} -{{- end }} - -{{- /* Deprecate site.Author.email in favor of site.Params.author.email */}} -{{- $authorEmail := "" }} -{{- with site.Params.author }} - {{- if reflect.IsMap . }} - {{- with .email }} - {{- $authorEmail = . }} - {{- end }} - {{- end }} -{{- else }} - {{- with site.Author.email }} - {{- $authorEmail = . }} - {{- warnf "The author key in site configuration is deprecated. Use params.author.email instead." }} - {{- end }} -{{- end -}} - -{{ "" | safeHTML }} - - {{ .Permalink | strings.TrimSuffix "index.gmi" }} - {{ .Site.Title }} - {{ .Date.Format "2006-01-02T15:04:05-0700" | safeHTML }} - - - {{- with $authorName }} - - {{ . }} - {{- with $authorEmail }} - {{ . }}{{ end }} - {{ end }} - Hugo -- gohugo.io - {{ replace .Site.Copyright "{currentYear}" (now.Format "2006") }} - {{ .Site.Params.Description }}{{ range first .Site.Config.Services.RSS.Limit .Data.Pages }} - - {{ .Permalink | strings.TrimSuffix "index.gmi" }} - {{ .Title }} - {{ .Date.Format "2006-01-02T15:04:05-0700" | safeHTML }} - - {{ end }} - diff --git a/layouts/taxonomy/taxonomy.gmi b/layouts/taxonomy/taxonomy.gmi deleted file mode 100644 index 9c2a9f0..0000000 --- a/layouts/taxonomy/taxonomy.gmi +++ /dev/null @@ -1,17 +0,0 @@ -{{ define "main" -}} -=> {{ .Site.Home.RelPermalink | strings.TrimSuffix "index.gmi" }} {{ emojify ":link:" }} {{ i18n "returnHome" }} - - -# {{ .Type | humanize }} - - -## {{ i18n "feeds" }} - -=> {{ .RelPermalink | replaceRE `index.gmi$` "atom.xml" }} {{ emojify ":link:" }} {{ i18n "atomFeed" }} - - -## {{ i18n "list" }} -{{ range .Data.Pages }} -=> {{ .RelPermalink | strings.TrimSuffix "index.gmi" }} {{ emojify ":link:" }} {{ .Title -}} -{{ end -}} -{{ end }} \ No newline at end of file diff --git a/layouts/taxonomy/taxonomy.html b/layouts/taxonomy/taxonomy.html deleted file mode 100644 index 86d7f89..0000000 --- a/layouts/taxonomy/taxonomy.html +++ /dev/null @@ -1,16 +0,0 @@ -{{ define "main" -}} - -
-

{{ .Type | humanize }}

-

{{ i18n "feeds" }}

-

{{ emojify ":link:" }} {{ i18n "atomFeed" }}

-

{{ i18n "list" }}

- -
-{{- end }} \ No newline at end of file -- cgit v1.2.3