gcg-website/layouts/wettbewerbe/single.html
2023-02-08 15:49:01 +01:00

62 lines
1.9 KiB
HTML

{{ define "main" }}
<section class="section-sm">
<div class="container">
<div class="row">
<div class="col-12 mb-4">
<img style="height: 500px;width: 100%;object-fit: cover;" src="{{ .Params.Image | relURL }}"
class="img-fluid w-100">
</div>
</div>
<div>
<h2>{{ .Title }}</h2>
</div>
<div class="row align-items-center mb-5">
<div class="col-xl-6 order-sm-3 order-xl-2 col-12 order-2">
<ul class="list-inline">
<li class="list-inline-item mr-4 mb-3 mb-sm-0">
<div class="d-flex align-items-center">
<i class="mdi mdi-crowd text-primary icon-md mr-2"></i>
<div class="text-left">
<h6 class="mb-0">{{ i18n "class" | upper }}</h6>
<p class="mb-0">{{ .Params.Class }}</p>
</div>
</div>
</li>
</ul>
</div>
<div class="col-xl-3 text-sm-right text-left order-sm-2 order-3 order-xl-3 col-sm-6 mb-4 mb-xl-0">
<a href="{{ .Params.Web_url | safeURL }}" class="btn btn-primary">{{ i18n "website" }}</a>
</div>
<div class="col-12 mt-4 order-4">
<div class="border-bottom border-primary"></div>
</div>
</div>
<div class="row">
<div class="col-12 mb-4 content">
{{ .Content }}
</div>
</div>
</div>
</section>
<section class="section 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 "wettbewerbe"}}
</div>
{{ end }}
</div>
</div>
</section>
{{ end }}