summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Johnson <nick@nicholasjohnson.ch>2023-10-15 00:00:00 +0000
committerNicholas Johnson <nick@nicholasjohnson.ch>2023-10-15 00:00:00 +0000
commit324f7ead1c9333c8580277316ae9f620dfed3d715e805b5f824d6fe4da15567e (patch)
treedd75249b8b65e9298b4fdf1ad638e04db91cf8d19e41b770fc885dbd5c1be163
parent557d2f790c6a0f6ef2b842c67290f21a79fff8c00246b44ef33c527aab160d1b (diff)
downloadhugo-theme-journal-1.0.7.tar.gz
hugo-theme-journal-1.0.7.zip
Convert Atom feed dates to UTCv1.0.7
Atom feed dates reported as UTC were not necessarily UTC. The entry archetype converts from local to UTC by default, but the user may override that behavior.
-rw-r--r--layouts/index.atom.xml4
-rw-r--r--layouts/index.gemini_atom.xml4
-rw-r--r--layouts/taxonomy/taxonomy.atom.xml4
-rw-r--r--layouts/taxonomy/taxonomy.gemini_atom.xml4
-rw-r--r--layouts/term/term.atom.xml4
-rw-r--r--layouts/term/term.gemini_atom.xml4
6 files changed, 12 insertions, 12 deletions
diff --git a/layouts/index.atom.xml b/layouts/index.atom.xml
index ac3b1e5..5c8b764 100644
--- a/layouts/index.atom.xml
+++ b/layouts/index.atom.xml
@@ -2,7 +2,7 @@
<feed xmlns="http://www.w3.org/2005/Atom">
<id>{{ .Permalink }}</id>
<title>{{ .Site.Title }}</title>
- <updated>{{ .Date.Format "2006-01-02T15:04:05Z" | safeHTML }}</updated>
+ <updated>{{ .Date.UTC.Format "2006-01-02T15:04:05Z" | safeHTML }}</updated>
<link href="{{ .Permalink }}atom.xml" rel="self" />
<link href="{{ .Permalink }}" rel="alternate" />
<author>
@@ -15,7 +15,7 @@
<entry>
<id>{{ .Permalink }}</id>
<title type="html">{{ .Title }}</title>
- <updated>{{ .Date.Format "2006-01-02T15:04:05Z" | safeHTML }}</updated>
+ <updated>{{ .Date.UTC.Format "2006-01-02T15:04:05Z" | safeHTML }}</updated>
<link href="{{ .Permalink }}" />
<content type="html">{{ .Content | html }}</content>
</entry>{{ end }}
diff --git a/layouts/index.gemini_atom.xml b/layouts/index.gemini_atom.xml
index ca6001e..2c5f682 100644
--- a/layouts/index.gemini_atom.xml
+++ b/layouts/index.gemini_atom.xml
@@ -2,7 +2,7 @@
<feed xmlns="http://www.w3.org/2005/Atom">
<id>{{ replace .Permalink "https://" "gemini://" }}</id>
<title>{{ .Site.Title }}</title>
- <updated>{{ .Date.Format "2006-01-02T15:04:05Z" | safeHTML }}</updated>
+ <updated>{{ .Date.UTC.Format "2006-01-02T15:04:05Z" | safeHTML }}</updated>
<link href="{{ replace .Permalink "https://" "gemini://" | safeURL }}atom.xml" rel="self" />
<link href="{{ replace .Permalink "https://" "gemini://" | safeURL }}" rel="alternate" />
<author>
@@ -15,7 +15,7 @@
<entry>
<id>{{ replace .Permalink "https://" "gemini://" | safeURL }}</id>
<title>{{ .Title }}</title>
- <updated>{{ .Date.Format "2006-01-02T15:04:05Z" | safeHTML }}</updated>
+ <updated>{{ .Date.UTC.Format "2006-01-02T15:04:05Z" | safeHTML }}</updated>
<link href="{{ replace .Permalink "https://" "gemini://" | safeURL }}" rel="alternate" />
</entry>{{ end }}
</feed>
diff --git a/layouts/taxonomy/taxonomy.atom.xml b/layouts/taxonomy/taxonomy.atom.xml
index 4d8b8e4..e499961 100644
--- a/layouts/taxonomy/taxonomy.atom.xml
+++ b/layouts/taxonomy/taxonomy.atom.xml
@@ -2,7 +2,7 @@
<feed xmlns="http://www.w3.org/2005/Atom">
<id>{{ .Permalink }}</id>
<title>{{ .Site.Title }}</title>
- <updated>{{ .Date.Format "2006-01-02T15:04:05Z" | safeHTML }}</updated>
+ <updated>{{ .Date.UTC.Format "2006-01-02T15:04:05Z" | safeHTML }}</updated>
<link href="{{ .Permalink }}atom.xml" rel="self" />
<link href="{{ .Permalink }}" rel="alternate" />
<author>
@@ -15,7 +15,7 @@
<entry>
<id>{{ .Permalink }}</id>
<title type="html">{{ .Title }}</title>
- <updated>{{ .Date.Format "2006-01-02T15:04:05Z" | safeHTML }}</updated>
+ <updated>{{ .Date.UTC.Format "2006-01-02T15:04:05Z" | safeHTML }}</updated>
<link href="{{ .Permalink }}" />
<content type="html">{{ .Content | html }}</content>
</entry>{{ end }}
diff --git a/layouts/taxonomy/taxonomy.gemini_atom.xml b/layouts/taxonomy/taxonomy.gemini_atom.xml
index 97542a4..84af3b3 100644
--- a/layouts/taxonomy/taxonomy.gemini_atom.xml
+++ b/layouts/taxonomy/taxonomy.gemini_atom.xml
@@ -2,7 +2,7 @@
<feed xmlns="http://www.w3.org/2005/Atom">
<id>{{ replace .Permalink "https://" "gemini://" }}</id>
<title>{{ .Site.Title }}</title>
- <updated>{{ .Date.Format "2006-01-02T15:04:05Z" | safeHTML }}</updated>
+ <updated>{{ .Date.UTC.Format "2006-01-02T15:04:05Z" | safeHTML }}</updated>
<link href="{{ replace .Permalink "https://" "gemini://" | safeURL }}atom.xml" rel="self" />
<link href="{{ replace .Permalink "https://" "gemini://" | safeURL }}" rel="alternate" />
<author>
@@ -15,7 +15,7 @@
<entry>
<id>{{ replace .Permalink "https://" "gemini://" | safeURL }}</id>
<title>{{ .Title }}</title>
- <updated>{{ .Date.Format "2006-01-02T15:04:05Z" | safeHTML }}</updated>
+ <updated>{{ .Date.UTC.Format "2006-01-02T15:04:05Z" | safeHTML }}</updated>
<link href="{{ replace .Permalink "https://" "gemini://" | safeURL }}" rel="alternate" />
</entry>{{ end }}
</feed>
diff --git a/layouts/term/term.atom.xml b/layouts/term/term.atom.xml
index 4d8b8e4..e499961 100644
--- a/layouts/term/term.atom.xml
+++ b/layouts/term/term.atom.xml
@@ -2,7 +2,7 @@
<feed xmlns="http://www.w3.org/2005/Atom">
<id>{{ .Permalink }}</id>
<title>{{ .Site.Title }}</title>
- <updated>{{ .Date.Format "2006-01-02T15:04:05Z" | safeHTML }}</updated>
+ <updated>{{ .Date.UTC.Format "2006-01-02T15:04:05Z" | safeHTML }}</updated>
<link href="{{ .Permalink }}atom.xml" rel="self" />
<link href="{{ .Permalink }}" rel="alternate" />
<author>
@@ -15,7 +15,7 @@
<entry>
<id>{{ .Permalink }}</id>
<title type="html">{{ .Title }}</title>
- <updated>{{ .Date.Format "2006-01-02T15:04:05Z" | safeHTML }}</updated>
+ <updated>{{ .Date.UTC.Format "2006-01-02T15:04:05Z" | safeHTML }}</updated>
<link href="{{ .Permalink }}" />
<content type="html">{{ .Content | html }}</content>
</entry>{{ end }}
diff --git a/layouts/term/term.gemini_atom.xml b/layouts/term/term.gemini_atom.xml
index 97542a4..84af3b3 100644
--- a/layouts/term/term.gemini_atom.xml
+++ b/layouts/term/term.gemini_atom.xml
@@ -2,7 +2,7 @@
<feed xmlns="http://www.w3.org/2005/Atom">
<id>{{ replace .Permalink "https://" "gemini://" }}</id>
<title>{{ .Site.Title }}</title>
- <updated>{{ .Date.Format "2006-01-02T15:04:05Z" | safeHTML }}</updated>
+ <updated>{{ .Date.UTC.Format "2006-01-02T15:04:05Z" | safeHTML }}</updated>
<link href="{{ replace .Permalink "https://" "gemini://" | safeURL }}atom.xml" rel="self" />
<link href="{{ replace .Permalink "https://" "gemini://" | safeURL }}" rel="alternate" />
<author>
@@ -15,7 +15,7 @@
<entry>
<id>{{ replace .Permalink "https://" "gemini://" | safeURL }}</id>
<title>{{ .Title }}</title>
- <updated>{{ .Date.Format "2006-01-02T15:04:05Z" | safeHTML }}</updated>
+ <updated>{{ .Date.UTC.Format "2006-01-02T15:04:05Z" | safeHTML }}</updated>
<link href="{{ replace .Permalink "https://" "gemini://" | safeURL }}" rel="alternate" />
</entry>{{ end }}
</feed>