From 412830e0999e304d94fb0beafe9f3cf4d355c00e Mon Sep 17 00:00:00 2001 From: JP Hastings-Spital Date: Tue, 25 Jul 2023 22:41:33 +0100 Subject: [PATCH] Absolute URLs in RSS --- themes/hello-friend-ng/layouts/_default/rss.xml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/themes/hello-friend-ng/layouts/_default/rss.xml b/themes/hello-friend-ng/layouts/_default/rss.xml index 9ca47ea5..03fab67c 100644 --- a/themes/hello-friend-ng/layouts/_default/rss.xml +++ b/themes/hello-friend-ng/layouts/_default/rss.xml @@ -15,7 +15,7 @@ {{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }} - {{ .Permalink }} + {{ .Permalink | absURL }} Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }} Hugo -- gohugo.io{{ with .Site.LanguageCode }} {{.}}{{end}}{{ with .Site.Author.email }} @@ -24,16 +24,16 @@ {{.}}{{end}}{{ if not .Date.IsZero }} {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{ end }} {{- with .OutputFormats.Get "RSS" -}} - {{ printf "" .Permalink .MediaType | safeHTML }} + {{ printf "" (.Permalink | absURL) .MediaType | safeHTML }} {{- end -}} {{ range $pages }} {{ .Title }} - {{ .Permalink }} - {{ if .Page.Params.Audio }}{{end}} + {{ .Permalink | absURL }} + {{ if .Page.Params.Audio }}{{end}} {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} {{ with .Site.Author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}} - {{ .Permalink }} + {{ .Permalink | absURL }} {{ .Summary }} {{ .Content | html}}