From 75e951c78f75dd2ff5ff5eb98a682c2d678d9a8a Mon Sep 17 00:00:00 2001 From: Will Faught Date: Mon, 10 Feb 2025 21:29:22 -0800 Subject: [PATCH] Rename paige.feeds.link_to_page to disable_link --- README.md | 4 ++-- layouts/_default/list.atom.xml | 2 +- layouts/_default/list.rss.xml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index a80fd99a..ba409367 100644 --- a/README.md +++ b/README.md @@ -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] diff --git a/layouts/_default/list.atom.xml b/layouts/_default/list.atom.xml index 40a21f6d..ff13d1d9 100644 --- a/layouts/_default/list.atom.xml +++ b/layouts/_default/list.atom.xml @@ -98,7 +98,7 @@ {{ range $subpage := $subpages }} {{ $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 }} diff --git a/layouts/_default/list.rss.xml b/layouts/_default/list.rss.xml index d2fdbee5..d3f9421a 100644 --- a/layouts/_default/list.rss.xml +++ b/layouts/_default/list.rss.xml @@ -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 }}