Implementierung Fachbereichsseiten #305
0
content/german/fb-gwf/_index.md
Normal file
0
content/german/fb-gwf/_index.md
Normal file
7
content/german/fb-mint/_index.md
Normal file
7
content/german/fb-mint/_index.md
Normal file
@ -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"
|
||||||
|
---
|
15
content/german/fb-mint/biologie.md
Normal file
15
content/german/fb-mint/biologie.md
Normal file
@ -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
content/german/fb-slk/_index.md
Normal file
0
content/german/fb-slk/_index.md
Normal file
7
layouts/_default/fach.html
Normal file
7
layouts/_default/fach.html
Normal file
@ -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>
|
15
layouts/fachbereich/list.html
Normal file
15
layouts/fachbereich/list.html
Normal file
@ -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 }}
|
46
layouts/fachbereich/single.html
Normal file
46
layouts/fachbereich/single.html
Normal file
@ -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 }}
|
Loading…
x
Reference in New Issue
Block a user