diff --git a/README.md b/README.md index b304f50b..71f43d8d 100644 --- a/README.md +++ b/README.md @@ -268,17 +268,19 @@ github_repo = "" [paige.date] format = ":date_long" # Hugo date format +[paige.feed] +hide_page = false + +[paige.feed.rss] +managing_editor = "" +web_master = "" + [paige.git] commit_url = "" # Example is "https://github.com/willfaught/paige/commit/%s" [paige.menu] style = "pills" # Must be "links", "pills", "tabs", or "underline" -[paige.rss] -hide_page = false -managing_editor = "" -web_master = "" - [paige.search] hide_page = false ``` diff --git a/exampleSite/content/search.md b/exampleSite/content/search.md index b05ad225..3fd3b3ff 100644 --- a/exampleSite/content/search.md +++ b/exampleSite/content/search.md @@ -2,7 +2,7 @@ description: "Search the site." layout: "paige/search" paige: - rss: + feed: hide_page: true search: hide_page: true diff --git a/exampleSite/hugo.toml b/exampleSite/hugo.toml index 833a533d..3aa3d3d7 100644 --- a/exampleSite/hugo.toml +++ b/exampleSite/hugo.toml @@ -93,7 +93,7 @@ default = true [params.paige.git] commit_url = "https://github.com/willfaught/paige/commit/%s" -[params.paige.rss] +[params.paige.feed.rss] managing_editor = "Will Faught" web_master = "Will Faught" diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml index 97bf8d6a..0b641985 100644 --- a/layouts/_default/rss.xml +++ b/layouts/_default/rss.xml @@ -8,7 +8,7 @@ {{ $pages = $pages | first $limit }} {{ end }} -{{ $pages = where $pages "Params.paige.rss.hide_page" "ne" true }} +{{ $pages = where $pages "Params.paige.feed.hide_page" "ne" true }} {{ printf "" | safeHTML }} @@ -27,13 +27,13 @@ {{ $page.PublishDate.Format "Mon, 02 Jan 2006 15:04:05 -0700" }} {{ end }} {{ $page.Permalink }} - {{ with $page.Param "paige.rss.managing_editor" }} + {{ with $page.Param "paige.feed.rss.managing_editor" }} {{ . }} {{ end }} {{ with $title }} {{ . }} {{ end }} - {{ with $page.Param "paige.rss.web_master" }} + {{ with $page.Param "paige.feed.rss.web_master" }} {{ . }} {{ end }} {{ range $pages }}