pagefind ignore unrelated results

This commit is contained in:
2023-04-23 10:48:20 +02:00
parent aa60228db2
commit 93c8542cdc
4 changed files with 4 additions and 4 deletions

View File

@ -9,7 +9,7 @@
<h2 class="section-title">{{ i18n "related_contests" }}</h2>
</div>
</div>
<div class="row">
<div class="row" data-pagefind-ignore="all">
{{ $related := (where .Site.RegularPages "Type" "wettbewerbe") | intersect (where .Site.Pages ".Title" "!=" .Title) | union (.Site.RegularPages.Related . ) | shuffle | first 3}}
{{ range first 3 $related }}
<div class="col-lg-4 col-sm-6 mb-5">