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 }}