pagefind ignore unrelated results
This commit is contained in:
		| @@ -10,7 +10,7 @@ | |||||||
|         <h2 class="section-title">{{ i18n "related_begabtenfoerderung" }}</h2> |         <h2 class="section-title">{{ i18n "related_begabtenfoerderung" }}</h2> | ||||||
|       </div> |       </div> | ||||||
|     </div> |     </div> | ||||||
|     <div class="row"> |     <div class="row" data-pagefind-ignore="all"> | ||||||
|       {{ $related := (where .Site.RegularPages "Type" "begabte") | intersect (where .Site.Pages ".Title" "!=" .Title) | union (.Site.RegularPages.Related . ) | shuffle | first 3}} |       {{ $related := (where .Site.RegularPages "Type" "begabte") | intersect (where .Site.Pages ".Title" "!=" .Title) | union (.Site.RegularPages.Related . ) | shuffle | first 3}} | ||||||
|       {{ range first 3 $related }} |       {{ range first 3 $related }} | ||||||
|       <div class="col-lg-4 col-sm-6 mb-5"> |       <div class="col-lg-4 col-sm-6 mb-5"> | ||||||
|   | |||||||
| @@ -61,7 +61,7 @@ | |||||||
|   </div> |   </div> | ||||||
| </section> | </section> | ||||||
|  |  | ||||||
| <section class="section-sm pt-0"> | <section class="section-sm pt-0" data-pagefind-ignore="all"> | ||||||
|   <div class="container"> |   <div class="container"> | ||||||
|     <div class="row"> |     <div class="row"> | ||||||
|       <div class="col-12"> |       <div class="col-12"> | ||||||
|   | |||||||
| @@ -1,4 +1,4 @@ | |||||||
| <aside class="col-lg-4 order-4 order-lg-2"> | <aside class="col-lg-4 order-4 order-lg-2" data-pagefind-ignore="all"> | ||||||
|   <div class="bg-white mb-4"> |   <div class="bg-white mb-4"> | ||||||
|     <h4 class="mb-4">{{ i18n "categories" }}</h4> |     <h4 class="mb-4">{{ i18n "categories" }}</h4> | ||||||
|     {{ $data := index .Site.Data .Site.Language.Lang }} |     {{ $data := index .Site.Data .Site.Language.Lang }} | ||||||
|   | |||||||
| @@ -9,7 +9,7 @@ | |||||||
|         <h2 class="section-title">{{ i18n "related_contests" }}</h2> |         <h2 class="section-title">{{ i18n "related_contests" }}</h2> | ||||||
|       </div> |       </div> | ||||||
|     </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}} |       {{ $related := (where .Site.RegularPages "Type" "wettbewerbe") | intersect (where .Site.Pages ".Title" "!=" .Title) | union (.Site.RegularPages.Related . ) | shuffle | first 3}} | ||||||
|       {{ range first 3 $related }} |       {{ range first 3 $related }} | ||||||
|       <div class="col-lg-4 col-sm-6 mb-5"> |       <div class="col-lg-4 col-sm-6 mb-5"> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user