diff options
author | Nicholas Johnson <mail@nicholasjohnson.ch> | 2024-11-07 00:00:00 +0000 |
---|---|---|
committer | Nicholas Johnson <mail@nicholasjohnson.ch> | 2024-11-07 00:00:00 +0000 |
commit | f62eaded157e026d92077a18f8211b64a30fdc436188f19d32e089244d3c4c20 (patch) | |
tree | c5cdd4df132fa857611dde1a5bcc5c022483dc052860492c92a525ba5f3d1d0e /layouts/index.gemini_atom.xml | |
parent | 882b947ae8ad1b9b3fc4ccf39cc158c2f53d280dc2d9e39de6965bdf7b4ec5a8 (diff) | |
download | hugo-theme-journal-f62eaded157e026d92077a18f8211b64a30fdc436188f19d32e089244d3c4c20.tar.gz hugo-theme-journal-f62eaded157e026d92077a18f8211b64a30fdc436188f19d32e089244d3c4c20.zip |
Don't convert time to UTC in Atom feeds
The entry archetype already wipes the time of day of entries and
converts their dates to UTC, for the sake of user privacy. If the user
overrides this behavior and purposely includes times and/or time zones,
the theme should not interfere.
Diffstat (limited to 'layouts/index.gemini_atom.xml')
-rw-r--r-- | layouts/index.gemini_atom.xml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/index.gemini_atom.xml b/layouts/index.gemini_atom.xml index a6abebc..09e2bc1 100644 --- a/layouts/index.gemini_atom.xml +++ b/layouts/index.gemini_atom.xml @@ -34,7 +34,7 @@ <feed xmlns="http://www.w3.org/2005/Atom"> <id>{{ .Permalink | replaceRE `^https://(.*)index.gmi$` "gemini://$1" }}</id> <title>{{ .Site.Title }}</title> - <updated>{{ .Date.UTC.Format "2006-01-02T15:04:05Z" | safeHTML }}</updated> + <updated>{{ .Date.Format "2006-01-02T15:04:05-0700" | safeHTML }}</updated> <link href="{{ .Permalink | replaceRE `^https://(.*)/index.gmi$` "gemini://$1/atom.xml" | safeURL }}" rel="self" /> <link href="{{ .Permalink | replaceRE `^https://(.*)index.gmi$` "gemini://$1" | safeURL }}" rel="alternate" /> {{- with $authorName }} @@ -49,7 +49,7 @@ <entry> <id>{{ .Permalink | replaceRE `^https://(.*)index.gmi$` "gemini://$1" }}</id> <title>{{ .Title }}</title> - <updated>{{ .Date.UTC.Format "2006-01-02T15:04:05Z" | safeHTML }}</updated> + <updated>{{ .Date.Format "2006-01-02T15:04:05-0700" | safeHTML }}</updated> <link href="{{ .Permalink | replaceRE `^https://(.*)index.gmi$` "gemini://$1" | safeURL }}" rel="alternate" /> </entry>{{ end }} </feed> |