Use paige.feed, paige.feed.rss config

master
Will Faught 2 years ago
parent bcf121c34a
commit 4bab964227

@ -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
```

@ -2,7 +2,7 @@
description: "Search the site."
layout: "paige/search"
paige:
rss:
feed:
hide_page: true
search:
hide_page: true

@ -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"

@ -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 "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
@ -27,13 +27,13 @@
<lastBuildDate>{{ $page.PublishDate.Format "Mon, 02 Jan 2006 15:04:05 -0700" }}</lastBuildDate>
{{ end }}
<link>{{ $page.Permalink }}</link>
{{ with $page.Param "paige.rss.managing_editor" }}
{{ with $page.Param "paige.feed.rss.managing_editor" }}
<managingEditor>{{ . }}</managingEditor>
{{ end }}
{{ with $title }}
<title>{{ . }}</title>
{{ end }}
{{ with $page.Param "paige.rss.web_master" }}
{{ with $page.Param "paige.feed.rss.web_master" }}
<webMaster>{{ . }}</webMaster>
{{ end }}
{{ range $pages }}

Loading…
Cancel
Save