This commit is contained in:
Denys Konovalov 2023-02-02 06:46:39 +01:00
parent a5289226bb
commit 03cf844f1d
7 changed files with 90 additions and 0 deletions

@ -0,0 +1,7 @@
---
title: MINT-Fächer
draft: false
bg_image: media/backgrounds/page-title.webp
description: Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.
type: "fachbereich"
---

@ -0,0 +1,15 @@
---
title: Biologie
draft: "false"
bg_image: /media/backgrounds/page-title.webp
description: Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam
image: /media/ganztagsangebote/biologie.webp
type: fachbereich
gallery: false
tiles:
- title: "Fachliche Schwerpunkte"
image: /media/ganztagsangebote/biologie.webp
id: id-1
content: frvnrin
---
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam

@ -0,0 +1,7 @@
<div class="card border-primary rounded-0 hover-shadow mb-5">
<img class="card-img-top rounded-0" src="{{ .Params.Image | relURL }}" alt="{{ .Title }}">
<div class="card-body">
<h4 class="card-title"><a href="{{ .Permalink }}">{{ .Title | truncate 20 }}</a></h4>
<a href="{{ .Permalink }}" class="btn btn-primary btn-sm">{{ i18n "show_more"}}</a>
</div>
</div>

@ -0,0 +1,15 @@
{{ define "main" }}
<section class="section">
<div class="container">
<div class="row">
{{ range .Data.Pages }}
<div class="col-lg-4 col-sm-6 mb-5">
{{ .Render "fach" }}
</div>
{{ end }}
</div>
</div>
</section>
{{ end }}

@ -0,0 +1,46 @@
{{ 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 }}