Rename paige.feeds.link_to_page to disable_link

This commit is contained in:
Will Faught
2025-02-10 21:29:22 -08:00
parent ee54384f23
commit 75e951c78f
3 changed files with 4 additions and 4 deletions

View File

@@ -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 }}

View File

@@ -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 }}