From 3937ed41728ecc8755161779b0f8ea2e7bef44b2 Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Sun, 5 Apr 2026 16:18:12 -0700 Subject: [PATCH] Do not unique-by-series when a flag is set Signed-off-by: Danila Fedorin --- layouts/partials/post.html | 2 ++ layouts/partials/uniquebyseries.html | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/layouts/partials/post.html b/layouts/partials/post.html index 876cb38..cf981af 100644 --- a/layouts/partials/post.html +++ b/layouts/partials/post.html @@ -18,10 +18,12 @@ {{- if .linkSeries -}} {{- $term := index (.page.GetTerms "series") 0 -}} {{- with $term -}} + {{- if (not ($term.Param "donotunique")) -}} {{- end -}} + {{- end -}} {{- end }} diff --git a/layouts/partials/uniquebyseries.html b/layouts/partials/uniquebyseries.html index 107b037..4b53b96 100644 --- a/layouts/partials/uniquebyseries.html +++ b/layouts/partials/uniquebyseries.html @@ -3,7 +3,7 @@ {{- $tmpScratch := newScratch -}} {{- range $post := (where (where site.Pages.ByDate.Reverse "Section" "blog") ".Kind" "!=" "section") -}} {{- $term := index ($post.GetTerms "series") 0 -}} -{{- if $term -}} +{{- if (and $term (not ($term.Param "donotunique"))) -}} {{- if not ($tmpScratch.Get $term.Permalink) -}} {{- $tmpScratch.Set $term.Permalink true -}} {{- $scratch.Add "pages" $post -}}