Use paige.feed, paige.feed.rss config
This commit is contained in:
12
README.md
12
README.md
@@ -268,17 +268,19 @@ github_repo = ""
|
|||||||
[paige.date]
|
[paige.date]
|
||||||
format = ":date_long" # Hugo date format
|
format = ":date_long" # Hugo date format
|
||||||
|
|
||||||
|
[paige.feed]
|
||||||
|
hide_page = false
|
||||||
|
|
||||||
|
[paige.feed.rss]
|
||||||
|
managing_editor = ""
|
||||||
|
web_master = ""
|
||||||
|
|
||||||
[paige.git]
|
[paige.git]
|
||||||
commit_url = "" # Example is "https://github.com/willfaught/paige/commit/%s"
|
commit_url = "" # Example is "https://github.com/willfaught/paige/commit/%s"
|
||||||
|
|
||||||
[paige.menu]
|
[paige.menu]
|
||||||
style = "pills" # Must be "links", "pills", "tabs", or "underline"
|
style = "pills" # Must be "links", "pills", "tabs", or "underline"
|
||||||
|
|
||||||
[paige.rss]
|
|
||||||
hide_page = false
|
|
||||||
managing_editor = ""
|
|
||||||
web_master = ""
|
|
||||||
|
|
||||||
[paige.search]
|
[paige.search]
|
||||||
hide_page = false
|
hide_page = false
|
||||||
```
|
```
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
description: "Search the site."
|
description: "Search the site."
|
||||||
layout: "paige/search"
|
layout: "paige/search"
|
||||||
paige:
|
paige:
|
||||||
rss:
|
feed:
|
||||||
hide_page: true
|
hide_page: true
|
||||||
search:
|
search:
|
||||||
hide_page: true
|
hide_page: true
|
||||||
|
@@ -93,7 +93,7 @@ default = true
|
|||||||
[params.paige.git]
|
[params.paige.git]
|
||||||
commit_url = "https://github.com/willfaught/paige/commit/%s"
|
commit_url = "https://github.com/willfaught/paige/commit/%s"
|
||||||
|
|
||||||
[params.paige.rss]
|
[params.paige.feed.rss]
|
||||||
managing_editor = "Will Faught"
|
managing_editor = "Will Faught"
|
||||||
web_master = "Will Faught"
|
web_master = "Will Faught"
|
||||||
|
|
||||||
|
@@ -8,7 +8,7 @@
|
|||||||
{{ $pages = $pages | first $limit }}
|
{{ $pages = $pages | first $limit }}
|
||||||
{{ end }}
|
{{ 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 }}
|
{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
|
||||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
<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>
|
<lastBuildDate>{{ $page.PublishDate.Format "Mon, 02 Jan 2006 15:04:05 -0700" }}</lastBuildDate>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<link>{{ $page.Permalink }}</link>
|
<link>{{ $page.Permalink }}</link>
|
||||||
{{ with $page.Param "paige.rss.managing_editor" }}
|
{{ with $page.Param "paige.feed.rss.managing_editor" }}
|
||||||
<managingEditor>{{ . }}</managingEditor>
|
<managingEditor>{{ . }}</managingEditor>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ with $title }}
|
{{ with $title }}
|
||||||
<title>{{ . }}</title>
|
<title>{{ . }}</title>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ with $page.Param "paige.rss.web_master" }}
|
{{ with $page.Param "paige.feed.rss.web_master" }}
|
||||||
<webMaster>{{ . }}</webMaster>
|
<webMaster>{{ . }}</webMaster>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ range $pages }}
|
{{ range $pages }}
|
||||||
|
Reference in New Issue
Block a user