Implementierung Fachbereichsseiten #305

Merged
Denys Konovalov merged 95 commits from feat/fachbereiche into main 2024-11-22 09:01:21 +01:00
7 changed files with 90 additions and 0 deletions
Showing only changes of commit 4655787893 - Show all commits

@ -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 }}