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/term/term.atom.xml | 56 ---------------------------------------
layouts/term/term.gemini_atom.xml | 55 --------------------------------------
layouts/term/term.gmi | 19 -------------
layouts/term/term.html | 14 ----------
4 files changed, 144 deletions(-)
delete mode 100644 layouts/term/term.atom.xml
delete mode 100644 layouts/term/term.gemini_atom.xml
delete mode 100644 layouts/term/term.gmi
delete mode 100644 layouts/term/term.html
(limited to 'layouts/term')
diff --git a/layouts/term/term.atom.xml b/layouts/term/term.atom.xml
deleted file mode 100644
index cbcbae8..0000000
--- a/layouts/term/term.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/term/term.gemini_atom.xml b/layouts/term/term.gemini_atom.xml
deleted file mode 100644
index 287bcc4..0000000
--- a/layouts/term/term.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/term/term.gmi b/layouts/term/term.gmi
deleted file mode 100644
index 5d7f7b1..0000000
--- a/layouts/term/term.gmi
+++ /dev/null
@@ -1,19 +0,0 @@
-{{ define "main" -}}
-=> {{ .Site.Home.RelPermalink | strings.TrimSuffix "index.gmi" }} {{ emojify ":link:" }} {{ i18n "returnHome" }}
-
-
-# {{ .Type | singularize | humanize }} "{{ .Title }}"
-
-
-## {{ i18n "feeds" }}
-
-=> {{ .RelPermalink | replaceRE `index.gmi$` "atom.xml" }} {{ emojify ":link:" }} {{ i18n "atomFeed" }}
-
-
-## {{ i18n "journalEntries" -}}
-
-{{ range .Data.Pages.ByPublishDate.Reverse }}
-
-{{ partial "metadata.gmi" . -}}
-{{ end -}}
-{{ end }}
\ No newline at end of file
diff --git a/layouts/term/term.html b/layouts/term/term.html
deleted file mode 100644
index 3b268dd..0000000
--- a/layouts/term/term.html
+++ /dev/null
@@ -1,14 +0,0 @@
-{{ define "main" -}}
-
- {{ emojify ":link:" }} {{ i18n "returnHome" }}
-
-
- {{ .Type | singularize | humanize }} "{{ .Title }}"
- {{ i18n "feeds" }}
- {{ emojify ":link:" }} {{ i18n "atomFeed" }}
- {{ i18n "journalEntries" }}
- {{- range .Data.Pages.ByPublishDate.Reverse }}
- {{ partial "metadata.html" . -}}
- {{ end }}
-
-{{- end }}
\ No newline at end of file
--
cgit v1.2.3