gcg-website/layouts/wettbewerbe/single.html

Failed to ignore revisions in .git-blame-ignore-revs.

24 lines
705 B
HTML
Raw Permalink Normal View History

2022-03-18 13:35:57 +01:00
{{ define "main" }}
2023-05-27 21:49:58 +02:00
{{ partial "header-cl-url" (dict "Params" .Params "Content" .Content) }}
2022-03-18 13:35:57 +01:00
<section class="section-sm pt-0">
2022-03-18 13:35:57 +01:00
<div class="container">
<div class="row">
<div class="col-12">
<h2 class="section-title">{{ i18n "related_contests" }}</h2>
</div>
</div>
2023-04-23 10:48:20 +02:00
<div class="row" data-pagefind-ignore="all">
2022-03-18 13:35:57 +01:00
{{ $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">
{{ .Render "card-ct"}}
2022-03-18 13:35:57 +01:00
</div>
{{ end }}
</div>
</div>
</section>
{{ end }}