71 lines
2.1 KiB
HTML

{{ define "main" }}
<!-- section -->
<section class="section-sm">
<div class="container">
<div class="row">
<div class="col-12 mb-4">
<!-- course thumb -->
<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>
<!-- course info -->
<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="fa-solid fa-user-group 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>
<!-- border -->
<div class="col-12 mt-4 order-4">
<div class="border-bottom border-primary"></div>
</div>
</div>
<!-- course details -->
<div class="row">
<div class="col-12 mb-4 content">
{{ .Content }}
</div>
</div>
</div>
</section>
<!-- /section -->
<!-- related course -->
<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">
<!-- course item -->
{{ $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>
<!-- /related course -->
{{ end }}