From f4aece8e5df3a0bfb2c33042d19881b6ec2becdf Mon Sep 17 00:00:00 2001 From: Henk Verlinde Date: Mon, 6 Sep 2021 10:19:46 +0200 Subject: [PATCH] fix: update feed template --- config/_default/params.toml | 2 ++ layouts/rss.xml | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/config/_default/params.toml b/config/_default/params.toml index 9601055..aaf84c9 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -51,6 +51,8 @@ lqipWidth = "20x" # Footer footer = "Powered by Netlify, Hugo, and Doks" + +# Feed copyRight = "Copyright (c) 2020-2021 Henk Verlinde" # Alert diff --git a/layouts/rss.xml b/layouts/rss.xml index 72ac564..b8f563e 100644 --- a/layouts/rss.xml +++ b/layouts/rss.xml @@ -7,8 +7,8 @@ Hugo -- gohugo.io{{ with .Site.LanguageCode }} {{.}}{{end}}{{ with .Site.Author.email }} {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Author.email }} - {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Copyright }} - {{.}}{{end}}{{ if not .Date.IsZero }} + {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Params.copyRight }} + {{ . | safeHTML }}{{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 }}