diff --git a/README.md b/README.md index b1cdf668..96bf1266 100644 --- a/README.md +++ b/README.md @@ -271,15 +271,11 @@ format = ":date_long" # Hugo date format [paige.feed] hide_page = false - -[paige.feed.atom] link_to_page = false # Link to the page instead of the front matter link, if present page_link = "⏎" # If a front matter link is present, and link_to_page is false, link to the page with this text [paige.feed.rss] -link_to_page = false # Link to the page instead of the front matter link, if present managing_editor = "" # Example is "Will Faught " -page_link = "⏎" # If a front matter link is present, and link_to_page is false, link to the page with this text web_master = "" # Example is "Will Faught " [paige.git] diff --git a/layouts/_default/list.atom.xml b/layouts/_default/list.atom.xml index 822e726a..47f89c93 100644 --- a/layouts/_default/list.atom.xml +++ b/layouts/_default/list.atom.xml @@ -95,8 +95,8 @@ {{ end }} {{ $content := .Content }} {{ if $content }} - {{ if and .Params.link (not (.Param "paige.feed.atom.link_to_page")) }} - {{ $link := or (.Param "paige.feed.atom.page_link" | markdownify) "⏎" }} + {{ if and .Params.link (not (.Param "paige.feed.link_to_page")) }} + {{ $link := or (.Param "paige.feed.page_link" | markdownify) "⏎" }} {{ $footer := printf `

%s

` .Permalink .Title $link }} {{ $content = print $content $footer }} {{ end }} @@ -127,7 +127,7 @@ {{ end }} {{ end }} {{ end }} - {{ if and .Params.link (not (.Param "paige.feed.atom.link_to_page")) }} + {{ if and .Params.link (not (.Param "paige.feed.link_to_page")) }} {{ else }} diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml index 9fdf2663..50d6efe2 100644 --- a/layouts/_default/rss.xml +++ b/layouts/_default/rss.xml @@ -53,8 +53,8 @@ {{ end }} {{ $description := .Content }} {{ if $description }} - {{ if and .Params.link (not (.Param "paige.feed.rss.link_to_page")) }} - {{ $link := or (.Param "paige.feed.rss.page_link" | markdownify) "⏎" }} + {{ if and .Params.link (not (.Param "paige.feed.link_to_page")) }} + {{ $link := or (.Param "paige.feed.page_link" | markdownify) "⏎" }} {{ $footer := printf `

%s

` .Permalink $title $link }} {{ $description = print $description $footer }} {{ end }} @@ -74,7 +74,7 @@ {{ $permalink = false }} {{ end }} {{ $guid }} - {{ if and .Params.link (not (.Param "paige.feed.atom.link_to_page")) }} + {{ if and .Params.link (not (.Param "paige.feed.link_to_page")) }} {{ .Params.link | safeURL }} {{ else }} {{ .Permalink | safeURL }}