From ac1f29608fa956b5ba52b2229dec60fcd485944c Mon Sep 17 00:00:00 2001 From: Will Faught Date: Mon, 19 Dec 2022 17:29:06 -0800 Subject: [PATCH] Add RSS site params --- README.md | 3 +++ layouts/_default/rss.xml | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 642d3c9b..9d79efc1 100644 --- a/README.md +++ b/README.md @@ -231,6 +231,9 @@ paige: date_format: "2006 January 2" # Hugo date format for page dates hide_theme_comment: true # Don't put a link to this project in a code comment hide_theme_link: true # Don't put a link to this project in the footer + rss: + managing_editor: "Michael Bluth" + web_master: "Michael Bluth" ``` If you set either `hide_theme_comment` or `hide_theme_link`, please credit this project in a post to help others find it. diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml index 263e95af..e63e73ab 100644 --- a/layouts/_default/rss.xml +++ b/layouts/_default/rss.xml @@ -31,13 +31,13 @@ {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} {{ end }} {{ .Permalink }} - {{ with .Site.Author.email }} + {{ with .Site.Params.paige.rss.managing_editor }} {{ . }} {{ end }} {{ with $title }} {{ . }} {{ end }} - {{ with .Site.Author.email }} + {{ with .Site.Params.paige.rss.web_master }} {{ . }} {{ end }} {{ range $pages }}