aboutsummaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorNicholas Johnson <nick@nicholasjohnson.ch>2023-02-24 00:00:00 +0000
committerNicholas Johnson <nick@nicholasjohnson.ch>2023-02-24 00:00:00 +0000
commitb46c9ba7eae23535cac173ef92917a913c92197d9de711ef3956cf1c6c99a23d (patch)
tree8eff1e8e2b61ef19dd7a758bbb32e4cbec3c40bbcc9e0fec5f56ce344fa41dcd /layouts
parentdce4ce364cf270408925bd1ee1ac280d720bb8b8606a59b21970c944312197ef (diff)
downloadhugo-theme-journal-b46c9ba7eae23535cac173ef92917a913c92197d9de711ef3956cf1c6c99a23d.tar.gz
hugo-theme-journal-b46c9ba7eae23535cac173ef92917a913c92197d9de711ef3956cf1c6c99a23d.zip
Fix date rendering of rights tag in Atom feeds
Diffstat (limited to 'layouts')
-rw-r--r--layouts/index.atom.xml2
-rw-r--r--layouts/index.gemini_atom.xml2
2 files changed, 2 insertions, 2 deletions
diff --git a/layouts/index.atom.xml b/layouts/index.atom.xml
index ffbedc9..f7abe7e 100644
--- a/layouts/index.atom.xml
+++ b/layouts/index.atom.xml
@@ -10,7 +10,7 @@
<email>{{ .Site.Author.email }}</email>
</author>
<generator>Hugo -- gohugo.io</generator>
- <rights type="html">{{ .Site.Copyright }} {{ .Site.Params.beginCopyrightYear }}-{{ now.Format "2006" }} {{ .Site.Author.name }}</rights>
+ <rights type="html">{{ replace .Site.Copyright "{currentYear}" (now.Format "2006") }}</rights>
<subtitle>{{ .Site.Params.Description }}</subtitle>{{ range first .Site.Config.Services.RSS.Limit .Site.RegularPages }}
<entry>
<id>{{ .Permalink }}</id>
diff --git a/layouts/index.gemini_atom.xml b/layouts/index.gemini_atom.xml
index 7025a00..dc1b563 100644
--- a/layouts/index.gemini_atom.xml
+++ b/layouts/index.gemini_atom.xml
@@ -10,7 +10,7 @@
<email>{{ .Site.Author.email }}</email>
</author>
<generator>Hugo -- gohugo.io</generator>
- <rights type="html">{{ .Site.Copyright }} {{ .Site.Params.beginCopyrightYear }}-{{ now.Format "2006" }} {{ .Site.Author.name }}</rights>
+ <rights type="html">{{ replace .Site.Copyright "{currentYear}" (now.Format "2006") }}</rights>
<subtitle>{{ .Site.Params.Description }}</subtitle>{{ range first .Site.Config.Services.RSS.Limit .Site.RegularPages }}
<entry>
<id>{{ replace .Permalink "https://" "gemini://" | safeURL }}</id>