From c101c7ba1e4451bdce96dac224276a267eafb8e8 Mon Sep 17 00:00:00 2001 From: Denys Konovalov Date: Sun, 23 Apr 2023 10:48:20 +0200 Subject: [PATCH] pagefind ignore unrelated results --- layouts/begabte/single.html | 2 +- layouts/ganztagsangebote/single.html | 2 +- layouts/partials/blog-sidebar.html | 2 +- layouts/wettbewerbe/single.html | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/layouts/begabte/single.html b/layouts/begabte/single.html index cbd18db7..870f884b 100644 --- a/layouts/begabte/single.html +++ b/layouts/begabte/single.html @@ -10,7 +10,7 @@

{{ i18n "related_begabtenfoerderung" }}

-
+
{{ $related := (where .Site.RegularPages "Type" "begabte") | intersect (where .Site.Pages ".Title" "!=" .Title) | union (.Site.RegularPages.Related . ) | shuffle | first 3}} {{ range first 3 $related }}
diff --git a/layouts/ganztagsangebote/single.html b/layouts/ganztagsangebote/single.html index c2784d50..32970fa5 100644 --- a/layouts/ganztagsangebote/single.html +++ b/layouts/ganztagsangebote/single.html @@ -61,7 +61,7 @@
-
+
diff --git a/layouts/partials/blog-sidebar.html b/layouts/partials/blog-sidebar.html index b8c23074..d3c0fbaf 100644 --- a/layouts/partials/blog-sidebar.html +++ b/layouts/partials/blog-sidebar.html @@ -1,4 +1,4 @@ -
-
+
{{ $related := (where .Site.RegularPages "Type" "wettbewerbe") | intersect (where .Site.Pages ".Title" "!=" .Title) | union (.Site.RegularPages.Related . ) | shuffle | first 3}} {{ range first 3 $related }}