From 49a73a63eb384d91fe5f3ed511827bdc47fc713e Mon Sep 17 00:00:00 2001 From: Will Faught Date: Fri, 14 Feb 2025 16:14:40 -0800 Subject: [PATCH] Refactor exps into vars --- layouts/_default/list.atom.xml | 4 +++- layouts/_default/list.rss.xml | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/layouts/_default/list.atom.xml b/layouts/_default/list.atom.xml index a81cb3e0..67e7cbbe 100644 --- a/layouts/_default/list.atom.xml +++ b/layouts/_default/list.atom.xml @@ -91,7 +91,9 @@ {{ $lastmod }} {{ range $subpages }} - {{ if not (.Param "paige.exclude_feeds") }} + {{ $include := not (.Param "paige.exclude_feeds") }} + + {{ if $include }} {{ $content := .Content }} {{ $external := and .Params.link (not (.Param "paige.feeds.disable_link")) | not | not }} diff --git a/layouts/_default/list.rss.xml b/layouts/_default/list.rss.xml index f105459a..54b14a2f 100644 --- a/layouts/_default/list.rss.xml +++ b/layouts/_default/list.rss.xml @@ -79,7 +79,9 @@ {{ end }} {{ range $subpages }} - {{ if not (.Param "paige.exclude_feeds") }} + {{ $include := not (.Param "paige.exclude_feeds") }} + + {{ if $include }} {{ $author := "" }} {{ $authors := partial "paige/func-authors.html" . }}