Denys Konovalov
799acd03a9
- Standartisierung der Karten-/Template-Elemente (schließt #224) - Verbesserung einiger Ansichten - "schrumpfung" - Code-Cleanups - Trabsliteration Kategorien u. v. m.
24 lines
726 B
HTML
24 lines
726 B
HTML
{{ define "main" }}
|
|
|
|
{{ partial "header-cl-url" (dict "Params" .Params "Content" .Content "default_img" "/media/contests/image.webp") }}
|
|
|
|
<section class="section-sm pt-0">
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<h2 class="section-title">{{ i18n "related_contests" }}</h2>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
{{ $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">
|
|
{{ .Render "card-ct"}}
|
|
</div>
|
|
{{ end }}
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
{{ end }}
|