47 lines
1.3 KiB
HTML
47 lines
1.3 KiB
HTML
{{ define "main" }}
|
|
|
|
<section class="section-sm">
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-12 mb-4 content">
|
|
{{ .Content }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="container">
|
|
<div class="row">
|
|
{{ range .Params.tiles }}
|
|
<div class="col-lg-4 col-sm-6filtr-item">
|
|
<div class="card border-primary rounded-0 hover-shadow mb-5">
|
|
<img class="card-img-top rounded-0" src="{{ .image | relURL }}" alt="{{ .Title }}">
|
|
<div class="card-body">
|
|
<h4 class="card-title"><a href="{{ .Permalink }}">{{ .title | truncate 30 }}</a></h4>
|
|
<a href="{{ .Permalink }}" class="btn btn-primary btn-sm">{{ i18n "show_more"}}</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{ end }}
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<section class="section pt-0">
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<h3 class="section-title">Aktuelles aus dem Fach {{ .Title }}</h3>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
{{ $related := (where .Site.RegularPages "Type" "post") | intersect (where .Site.Pages ".Params.sub" "in" .Title) | first 3}}
|
|
{{ range first 3 $related }}
|
|
<div class="col-lg-4 col-sm-6 mb-5">
|
|
{{ .Render "post"}}
|
|
</div>
|
|
{{ end }}
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
{{ end }}
|