Move link_to_page, page_link config to feed
This commit is contained in:
@@ -271,15 +271,11 @@ format = ":date_long" # Hugo date format
|
|||||||
|
|
||||||
[paige.feed]
|
[paige.feed]
|
||||||
hide_page = false
|
hide_page = false
|
||||||
|
|
||||||
[paige.feed.atom]
|
|
||||||
link_to_page = false # Link to the page instead of the front matter link, if present
|
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
|
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]
|
[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 <will.faught@example.com>"
|
managing_editor = "" # Example is "Will Faught <will.faught@example.com>"
|
||||||
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 <will.faught@example.com>"
|
web_master = "" # Example is "Will Faught <will.faught@example.com>"
|
||||||
|
|
||||||
[paige.git]
|
[paige.git]
|
||||||
|
@@ -95,8 +95,8 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
{{ $content := .Content }}
|
{{ $content := .Content }}
|
||||||
{{ if $content }}
|
{{ if $content }}
|
||||||
{{ if and .Params.link (not (.Param "paige.feed.atom.link_to_page")) }}
|
{{ if and .Params.link (not (.Param "paige.feed.link_to_page")) }}
|
||||||
{{ $link := or (.Param "paige.feed.atom.page_link" | markdownify) "⏎" }}
|
{{ $link := or (.Param "paige.feed.page_link" | markdownify) "⏎" }}
|
||||||
{{ $footer := printf `<p><a href="%s" title="%s">%s</a></p>` .Permalink .Title $link }}
|
{{ $footer := printf `<p><a href="%s" title="%s">%s</a></p>` .Permalink .Title $link }}
|
||||||
{{ $content = print $content $footer }}
|
{{ $content = print $content $footer }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
@@ -127,7 +127,7 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ 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")) }}
|
||||||
<link href="{{ .Params.link | safeURL }}" rel="alternate" type="text/html"/>
|
<link href="{{ .Params.link | safeURL }}" rel="alternate" type="text/html"/>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<link href="{{ .Permalink | safeURL }}" rel="alternate" type="text/html"/>
|
<link href="{{ .Permalink | safeURL }}" rel="alternate" type="text/html"/>
|
||||||
|
@@ -53,8 +53,8 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
{{ $description := .Content }}
|
{{ $description := .Content }}
|
||||||
{{ if $description }}
|
{{ if $description }}
|
||||||
{{ if and .Params.link (not (.Param "paige.feed.rss.link_to_page")) }}
|
{{ if and .Params.link (not (.Param "paige.feed.link_to_page")) }}
|
||||||
{{ $link := or (.Param "paige.feed.rss.page_link" | markdownify) "⏎" }}
|
{{ $link := or (.Param "paige.feed.page_link" | markdownify) "⏎" }}
|
||||||
{{ $footer := printf `<p><a href="%s" title="%s">%s</a></p>` .Permalink $title $link }}
|
{{ $footer := printf `<p><a href="%s" title="%s">%s</a></p>` .Permalink $title $link }}
|
||||||
{{ $description = print $description $footer }}
|
{{ $description = print $description $footer }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
@@ -74,7 +74,7 @@
|
|||||||
{{ $permalink = false }}
|
{{ $permalink = false }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<guid {{ if not $permalink }} isPermaLink="false" {{ end }}>{{ $guid }}</guid>
|
<guid {{ if not $permalink }} isPermaLink="false" {{ end }}>{{ $guid }}</guid>
|
||||||
{{ if and .Params.link (not (.Param "paige.feed.atom.link_to_page")) }}
|
{{ if and .Params.link (not (.Param "paige.feed.link_to_page")) }}
|
||||||
<link>{{ .Params.link | safeURL }}</link>
|
<link>{{ .Params.link | safeURL }}</link>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<link>{{ .Permalink | safeURL }}</link>
|
<link>{{ .Permalink | safeURL }}</link>
|
||||||
|
Reference in New Issue
Block a user