From e36593c2af47e9d54b2c53e1eead504503cb9d74 Mon Sep 17 00:00:00 2001 From: Will Faught Date: Fri, 14 Feb 2025 16:29:27 -0800 Subject: [PATCH] Omit paige-search.json from output formats --- layouts/_default/list.atom.xml | 11 +++++++++-- layouts/_default/list.rss.xml | 11 +++++++++-- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/layouts/_default/list.atom.xml b/layouts/_default/list.atom.xml index c826f7da..361889e9 100644 --- a/layouts/_default/list.atom.xml +++ b/layouts/_default/list.atom.xml @@ -66,13 +66,20 @@ {{ range $page.OutputFormats }} {{ $rel := cond (eq .Rel "canonical") "self" .Rel }} + {{ $suffix := hasSuffix .Permalink "/paige-search.json" }} - + {{ if not $suffix }} + + {{ end }} {{ end }} {{ range $t := $page.Translations }} {{ range .OutputFormats }} - + {{ $suffix := hasSuffix .Permalink "/paige-search.json" }} + + {{ if not $suffix }} + + {{ end }} {{ end }} {{ end }} diff --git a/layouts/_default/list.rss.xml b/layouts/_default/list.rss.xml index ea6da0fe..2076e4a3 100644 --- a/layouts/_default/list.rss.xml +++ b/layouts/_default/list.rss.xml @@ -42,13 +42,20 @@ {{ range $page.OutputFormats }} {{ $rel := cond (eq .Rel "canonical") "self" .Rel }} + {{ $suffix := hasSuffix .Permalink "/paige-search.json" }} - + {{ if not $suffix }} + + {{ end }} {{ end }} {{ range $t := $page.Translations }} {{ range .OutputFormats }} - + {{ $suffix := hasSuffix .Permalink "/paige-search.json" }} + + {{ if not $suffix }} + + {{ end }} {{ end }} {{ end }}