From 74ceb5efc50e67bffebc709b151df30252d127d8 Mon Sep 17 00:00:00 2001 From: Joe Mooring Date: Sat, 23 Mar 2024 13:39:44 -0700 Subject: [PATCH] [PATCH] tpl/tplimpl: Update RSS template - Use publication date for pubdate - Include version in generator element cherry-picked from https://github.com/gohugoio/hugo/commit/f0a26cf58e9bfbe55c091d51a4133bc22cad5d1f --- layouts/_default/rss.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml index 87949c9..fed8ae9 100644 --- a/layouts/_default/rss.xml +++ b/layouts/_default/rss.xml @@ -55,7 +55,7 @@ {{ index . 0 | absURL }} {{- end }} - Hugo -- gohugo.io + Hugo -- {{ hugo.Version }} {{ site.Language.LanguageCode }}{{ with $authorEmail }} {{.}}{{ with $authorName }} ({{ . }}){{ end }}{{ end }}{{ with $authorEmail }} {{ . }}{{ with $authorName }} ({{ . }}){{ end }}{{ end }}{{ with site.Copyright }} @@ -69,7 +69,7 @@ {{ .Title }} {{ .Permalink }} - {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} + {{ .PublishDate.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} {{- with $authorEmail }}{{ . }}{{ with $authorName }} ({{ . }}){{ end }}{{ end }} {{ .Permalink }} {{ with .Description | html }}{{ . }}{{ else }}{{ .Summary | html }}{{ end -}}