gcg-website/layouts/wettbewerbe/single.html
Denys Konovalov 763a040751
All checks were successful
website-main / prod-build (push) Successful in 1m20s
website-main / test-build (push) Successful in 55s
website-main / auto-rebuild (push) Has been skipped
website-dev / dev-build (push) Successful in 58s
refactor: switch render templates to partials
2023-07-15 15:50:10 +02:00

24 lines
692 B
HTML

{{ define "main" }}
{{ partial "header-cl-url" (dict "Params" .Params "Content" .Content) }}
<section class="section pt-0">
<div class="container">
<div class="row">
<div class="col-12">
<h2 class="mb-4">Weitere Wettbewerbe</h2>
</div>
</div>
<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">
{{ partial "card-category" . }}
</div>
{{ end }}
</div>
</div>
</section>
{{ end }}