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 | 972c0384e69b42e1fb2c87f1c221e12fab94830b60371c9d13ebebf1a341e4cd (patch) | |
tree | a5d7c8300e33ed4d491431d6cdddada87b45cbecfee050fcffe52422bf1c3d62 /layouts/index.atom.xml | |
parent | dc79bc325e6d71dd9dcbd48c78dbf57b5fb01bda3f04a95b92a6c6ab54d9a0ec (diff) | |
download | hugo-theme-journal-972c0384e69b42e1fb2c87f1c221e12fab94830b60371c9d13ebebf1a341e4cd.tar.gz hugo-theme-journal-972c0384e69b42e1fb2c87f1c221e12fab94830b60371c9d13ebebf1a341e4cd.zip |
Use site title for Atom feed title
Diffstat (limited to 'layouts/index.atom.xml')
-rw-r--r-- | layouts/index.atom.xml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/layouts/index.atom.xml b/layouts/index.atom.xml index 7c9359f..b78d178 100644 --- a/layouts/index.atom.xml +++ b/layouts/index.atom.xml @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <feed xmlns="http://www.w3.org/2005/Atom"> - <title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{ . }} on {{ end }}{{ .Site.Title }}{{ end }}</title> + <title>{{ .Site.Title }}</title> <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 }} @@ -11,12 +11,12 @@ </author> <generator>Hugo -- gohugo.io</generator>{{ range first .Site.Config.Services.RSS.Limit .Site.RegularPages }} <entry> - {{ `<title type="html">{{ .Title }}]]></title> + <title type="html">{{ .Title }}></title> <link href="{{ .Permalink }}"/> <id>{{ .Permalink }}</id> <updated>{{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</updated> {{- if .Content }} - {{ `<content type="html"><{{ .Content }}</content> + <content type="html"><{{ .Content }}</content> {{- end }} </entry>{{ end }} </feed> |