Rename paige.feeds.link_to_page to disable_link

master
Will Faught 5 months ago
parent ee54384f23
commit 75e951c78f

@ -207,8 +207,8 @@ type = "primary" # Bootstrap alert class
[paige.feeds]
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, then link to the page with this text
disable_link = false # Disables using the link parameter for the page URL
page_link = "⏎" # If a front matter link is present, and disable_link is false, then link to the page with this text
[paige.feeds.atom]

@ -98,7 +98,7 @@
{{ range $subpage := $subpages }}
<entry>
{{ $content := .Content }}
{{ $external := and .Params.link (not (.Param "paige.feeds.link_to_page")) | not | not }}
{{ $external := and .Params.link (not (.Param "paige.feeds.disable_link")) | not | not }}
{{ $id := printf "tag:%s,%s:%s" (urls.Parse site.BaseURL).Host (.PublishDate.Format "2006-01-02") .RelPermalink }}
{{ $published := cond (not .PublishDate.IsZero) (.PublishDate.Format $format) "" }}
{{ $summary := .Description | markdownify }}

@ -93,7 +93,7 @@
{{ $author := "" }}
{{ $authors := partial "paige/func-authors.html" . }}
{{ $description := .Content }}
{{ $external := and .Params.link (not (.Param "paige.feeds.link_to_page")) | not | not }}
{{ $external := and .Params.link (not (.Param "paige.feeds.disable_link")) | not | not }}
{{ $guid := printf "tag:%s,%s:%s" (urls.Parse site.BaseURL).Host (.PublishDate.Format "2006-01-02") (cond (.Params.id | not) .RelPermalink .Params.id) }}
{{ $published := .PublishDate.Format $format }}
{{ $title := .Title | markdownify | plainify | htmlUnescape }}

Loading…
Cancel
Save