diff options
author | Nicholas Johnson <nick@nicksphere.ch> | 2022-04-30 00:00:00 +0000 |
---|---|---|
committer | Nicholas Johnson <nick@nicksphere.ch> | 2022-04-30 00:00:00 +0000 |
commit | 2ac67528156e58f77fcd665b366bc4e44060ebbd1eaf383a97c193b30c93e72a (patch) | |
tree | e0fb4a0597681389f98a268471b8f8ff93118113797783af4924d9d4fd157900 /layouts | |
parent | f207573324e2a946661f947e55cde2cd068e09bc3dad74fdffb9aa0f53496eea (diff) | |
download | hugo-theme-journal-2ac67528156e58f77fcd665b366bc4e44060ebbd1eaf383a97c193b30c93e72a.tar.gz hugo-theme-journal-2ac67528156e58f77fcd665b366bc4e44060ebbd1eaf383a97c193b30c93e72a.zip |
Clean up Atom feed templates
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/index.atom.xml | 18 | ||||
-rw-r--r-- | layouts/index.gemini_atom.xml | 2 |
2 files changed, 10 insertions, 10 deletions
diff --git a/layouts/index.atom.xml b/layouts/index.atom.xml index b2ff567..2f89537 100644 --- a/layouts/index.atom.xml +++ b/layouts/index.atom.xml @@ -1,22 +1,22 @@ <?xml version="1.0" encoding="UTF-8"?> <feed xmlns="http://www.w3.org/2005/Atom"> + <id>{{ .Permalink }}</id> <title>{{ .Site.Title }}</title> + <updated>{{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</updated> <link href="{{ .Permalink }}atom.xml" rel="self"> - <link href="{{ .Permalink }}">{{ if not .Date.IsZero }} - <updated>{{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</updated>{{ end }} - <id>{{ .Permalink }}</id> + <link href="{{ .Permalink }}" rel="alternate"> <author> <name>{{ .Site.Author.name }}</name> <email>{{ .Site.Author.email }}</email> </author> - <generator>Hugo -- gohugo.io</generator>{{ range first .Site.Config.Services.RSS.Limit .Site.RegularPages }} + <generator>Hugo -- gohugo.io</generator> + <rights type="html">{{ .Site.Copyright }} {{ .Site.Params.beginCopyrightYear }}-{{ now.Format "2006" }} {{ .Site.Author.name }}</rights> + <subtitle>{{ .Site.Params.Description }}</subtitle>{{ range first .Site.Config.Services.RSS.Limit .Site.RegularPages }} <entry> - <title type="html">{{ .Title }}></title> - <link href="{{ .Permalink }}"> <id>{{ .Permalink }}</id> + <title type="html">{{ .Title }}></title> <updated>{{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</updated> - {{- if .Content }} - <content type="html"><{{ .Content }}</content> - {{- end }} + <link href="{{ .Permalink }}"> + <content type="html">{{ .Content }}</content> </entry>{{ end }} </feed> diff --git a/layouts/index.gemini_atom.xml b/layouts/index.gemini_atom.xml index c52f632..3c04d35 100644 --- a/layouts/index.gemini_atom.xml +++ b/layouts/index.gemini_atom.xml @@ -4,7 +4,7 @@ <title>{{ .Site.Title }}</title> <updated>{{ .Date.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">{{ if not .Date.IsZero }}{{ end }} + <link href="{{ replace .Permalink "https://" "gemini://" | safeURL }}" rel="alternate"> <author> <name>{{ .Site.Author.name }}</name> <email>{{ .Site.Author.email }}</email> |