aboutsummaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorNicholas Johnson <nick@nicksphere.ch>2022-04-30 00:00:00 +0000
committerNicholas Johnson <nick@nicksphere.ch>2022-04-30 00:00:00 +0000
commit972c0384e69b42e1fb2c87f1c221e12fab94830b60371c9d13ebebf1a341e4cd (patch)
treea5d7c8300e33ed4d491431d6cdddada87b45cbecfee050fcffe52422bf1c3d62 /layouts
parentdc79bc325e6d71dd9dcbd48c78dbf57b5fb01bda3f04a95b92a6c6ab54d9a0ec (diff)
downloadhugo-theme-journal-972c0384e69b42e1fb2c87f1c221e12fab94830b60371c9d13ebebf1a341e4cd.tar.gz
hugo-theme-journal-972c0384e69b42e1fb2c87f1c221e12fab94830b60371c9d13ebebf1a341e4cd.zip
Use site title for Atom feed title
Diffstat (limited to 'layouts')
-rw-r--r--layouts/index.atom.xml6
-rw-r--r--layouts/index.gemini_atom.xml2
2 files changed, 4 insertions, 4 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>
diff --git a/layouts/index.gemini_atom.xml b/layouts/index.gemini_atom.xml
index 4e43a5e..769004b 100644
--- a/layouts/index.gemini_atom.xml
+++ b/layouts/index.gemini_atom.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<id>{{ replace .Permalink "https://" "gemini://" }}</id>
- <title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{ . }} on {{ end }}{{ .Site.Title }}{{ end }}</title>
+ <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 }}