From 972c0384e69b42e1fb2c87f1c221e12fab94830b60371c9d13ebebf1a341e4cd Mon Sep 17 00:00:00 2001 From: Nicholas Johnson Date: Sat, 30 Apr 2022 00:00:00 +0000 Subject: Use site title for Atom feed title --- layouts/index.atom.xml | 6 +++--- layouts/index.gemini_atom.xml | 2 +- 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 @@ - {{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{ . }} on {{ end }}{{ .Site.Title }}{{ end }} + {{ .Site.Title }} {{ if not .Date.IsZero }} {{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }}{{ end }} @@ -11,12 +11,12 @@ Hugo -- gohugo.io{{ range first .Site.Config.Services.RSS.Limit .Site.RegularPages }} - {{ `{{ .Title }}]]> + {{ .Title }}> {{ .Permalink }} {{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }} {{- if .Content }} - {{ `<{{ .Content }} + <{{ .Content }} {{- end }} {{ end }} 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 @@ {{ replace .Permalink "https://" "gemini://" }} - {{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{ . }} on {{ end }}{{ .Site.Title }}{{ end }} + {{ .Site.Title }} {{ .Date.Format "2006-01-02T15:04:05Z" | safeHTML }} {{ if not .Date.IsZero }}{{ end }} -- cgit v1.2.3