diff --git a/config.toml b/config.toml index 76a6348..a8da1f1 100644 --- a/config.toml +++ b/config.toml @@ -9,3 +9,7 @@ enableEmoji = true [markup.goldmark.renderer] unsafe = true + +[params.author] + email = "dev@shockrah.xyz" + name = "shockrah" diff --git a/themes/shockrah.xyz/layouts/_default/rss.xml b/themes/shockrah.xyz/layouts/_default/rss.xml index e49c966..6e2b5f2 100644 --- a/themes/shockrah.xyz/layouts/_default/rss.xml +++ b/themes/shockrah.xyz/layouts/_default/rss.xml @@ -17,9 +17,9 @@ {{ .Permalink }} 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 }} - {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Author.email }} - {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Copyright }} + {{.}}{{end}}{{ with .Params.Author.email }} + {{.}}{{ with $.Params.Author.name }} ({{.}}){{end}}{{end}}{{ with .Params.Author.email }} + {{.}}{{ with $.Params.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Copyright }} {{.}}{{end}}{{ if not .Date.IsZero }} {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{ end }} {{- with .OutputFormats.Get "RSS" -}} @@ -30,7 +30,7 @@ {{ .Title }} {{ .Permalink }} {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} - {{ with .Site.Author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}} + {{ with .Params.Author.email }}{{.}}{{ with $.Params.Author.name }} ({{.}}){{end}}{{end}} {{ .Permalink }} {{ .Content | html }}