From b674c4094b18b9d25535c01e1304e68ee4741617 Mon Sep 17 00:00:00 2001 From: shockrah Date: Mon, 20 Apr 2026 21:18:45 -0700 Subject: [PATCH] Fixing broken RSS builder --- config.toml | 4 ++++ themes/shockrah.xyz/layouts/_default/rss.xml | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) 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 }}