summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Johnson <>2025-07-26 00:00:00 +0000
committerNicholas Johnson <>2025-07-27 00:00:00 +0000
commit3905c06481e979f9fe9e1e89de4ae35ab62bf2b7e7c906ec6cdc10d9b9c084ac (patch)
tree96957eeb860b55a4dd866c57e728a27dc861736a3d617e04e24ea06932f204c4
parent20316a171566c0c2e5d12ffa054e68f05d4b19180c4e701bee3837d99d085e75 (diff)
downloadhugo-theme-journal-3905c06481e979f9fe9e1e89de4ae35ab62bf2b7e7c906ec6cdc10d9b9c084ac.tar.gz
hugo-theme-journal-3905c06481e979f9fe9e1e89de4ae35ab62bf2b7e7c906ec6cdc10d9b9c084ac.zip
Remove support for deprecated key "site.Author"
This Hugo theme no longer supports the Hugo versions that can utilize the key "site.Author", so this code never executes.
-rw-r--r--layouts/home.atom.xml12
-rw-r--r--layouts/home.gemini_atom.xml12
-rw-r--r--layouts/taxonomy.atom.xml12
-rw-r--r--layouts/taxonomy.gemini_atom.xml12
-rw-r--r--layouts/term.atom.xml12
-rw-r--r--layouts/term.gemini_atom.xml12
6 files changed, 0 insertions, 72 deletions
diff --git a/layouts/home.atom.xml b/layouts/home.atom.xml
index 0d988ee..c4f4eae 100644
--- a/layouts/home.atom.xml
+++ b/layouts/home.atom.xml
@@ -1,4 +1,3 @@
-{{/* Deprecate site.Author.name in favor of site.Params.author.name */}}
{{- $authorName := "" }}
{{- with site.Params.author }}
{{- if reflect.IsMap . }}
@@ -8,14 +7,8 @@
{{- 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 . }}
@@ -23,11 +16,6 @@
{{- $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 -}}
{{ "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" | safeHTML }}
diff --git a/layouts/home.gemini_atom.xml b/layouts/home.gemini_atom.xml
index 446f9f8..6189f83 100644
--- a/layouts/home.gemini_atom.xml
+++ b/layouts/home.gemini_atom.xml
@@ -1,4 +1,3 @@
-{{/* Deprecate site.Author.name in favor of site.Params.author.name */}}
{{- $authorName := "" }}
{{- with site.Params.author }}
{{- if reflect.IsMap . }}
@@ -8,14 +7,8 @@
{{- 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 . }}
@@ -23,11 +16,6 @@
{{- $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 -}}
{{ "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" | safeHTML }}
diff --git a/layouts/taxonomy.atom.xml b/layouts/taxonomy.atom.xml
index cbcbae8..1364f27 100644
--- a/layouts/taxonomy.atom.xml
+++ b/layouts/taxonomy.atom.xml
@@ -1,4 +1,3 @@
-{{/* Deprecate site.Author.name in favor of site.Params.author.name */}}
{{- $authorName := "" }}
{{- with site.Params.author }}
{{- if reflect.IsMap . }}
@@ -8,14 +7,8 @@
{{- 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 . }}
@@ -23,11 +16,6 @@
{{- $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 -}}
{{ "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" | safeHTML }}
diff --git a/layouts/taxonomy.gemini_atom.xml b/layouts/taxonomy.gemini_atom.xml
index 76431e3..d8ab06e 100644
--- a/layouts/taxonomy.gemini_atom.xml
+++ b/layouts/taxonomy.gemini_atom.xml
@@ -1,4 +1,3 @@
-{{/* Deprecate site.Author.name in favor of site.Params.author.name */}}
{{- $authorName := "" }}
{{- with site.Params.author }}
{{- if reflect.IsMap . }}
@@ -8,14 +7,8 @@
{{- 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 . }}
@@ -23,11 +16,6 @@
{{- $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 -}}
{{ "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" | safeHTML }}
diff --git a/layouts/term.atom.xml b/layouts/term.atom.xml
index cbcbae8..1364f27 100644
--- a/layouts/term.atom.xml
+++ b/layouts/term.atom.xml
@@ -1,4 +1,3 @@
-{{/* Deprecate site.Author.name in favor of site.Params.author.name */}}
{{- $authorName := "" }}
{{- with site.Params.author }}
{{- if reflect.IsMap . }}
@@ -8,14 +7,8 @@
{{- 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 . }}
@@ -23,11 +16,6 @@
{{- $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 -}}
{{ "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" | safeHTML }}
diff --git a/layouts/term.gemini_atom.xml b/layouts/term.gemini_atom.xml
index 287bcc4..d8ab06e 100644
--- a/layouts/term.gemini_atom.xml
+++ b/layouts/term.gemini_atom.xml
@@ -1,4 +1,3 @@
-{{/*Deprecate site.Author.name in favor of site.Params.author.name */}}
{{- $authorName := "" }}
{{- with site.Params.author }}
{{- if reflect.IsMap . }}
@@ -8,14 +7,8 @@
{{- 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 . }}
@@ -23,11 +16,6 @@
{{- $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 -}}
{{ "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" | safeHTML }}