From 723857a2eec6bd3647e721d60f73a5bcf026b176 Mon Sep 17 00:00:00 2001 From: Will Faught Date: Sat, 23 Sep 2023 15:54:58 -0700 Subject: [PATCH] Fix RSS emails --- exampleSite/hugo.toml | 4 ++-- layouts/_default/rss.xml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/exampleSite/hugo.toml b/exampleSite/hugo.toml index 8b76ec51..d2100f84 100644 --- a/exampleSite/hugo.toml +++ b/exampleSite/hugo.toml @@ -104,8 +104,8 @@ name = "Will Faught" url = "https://willfaught.com/paige" [params.paige.feed.rss] -managing_editor_email = "Will Faught " -web_master_email = "Will Faught " +managing_editor = "will.faught@example.com (Will Faught)" +web_master = "will.faught@example.com (Will Faught)" [taxonomies] author = "authors" diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml index 7d873ff9..2934a034 100644 --- a/layouts/_default/rss.xml +++ b/layouts/_default/rss.xml @@ -80,7 +80,7 @@ {{ $primary := index . 0 }} {{ if and $primary.name $primary.email }} - {{ $author = printf "%s (%s)" $primary.name $primary.email }} + {{ $author = printf "%s (%s)" $primary.email $primary.name }} {{ else if $primary.email }} {{ $author = $primary.email }} {{ end }}