Create Vorstand page using static person data

This commit is contained in:
Christian Wolf 2023-01-20 15:14:39 +01:00
parent 00cbf57cfe
commit e0946e6c59
50 changed files with 206 additions and 60 deletions

View File

@ -12,28 +12,25 @@ Ein jeder Club benötigt einen Vorstand, der die Vereinsführung übernimmt und
{{< tsc/person-list >}} {{< tsc/person-list >}}
{{< tsc/vorstand {{< tsc/vorstand
name="Anja Westerhoff" name="anja-westerhoff"
role="Abteilungsleiter" role="Abteilungsleiter"
img="img/Anja_Westerhoff.jpg"
mail="clubleiter@tanzsportclub.vfl-sindelfingen.de" mail="clubleiter@tanzsportclub.vfl-sindelfingen.de"
>}} >}}
{{< tsc/vorstand {{< tsc/vorstand
name="Klaus Richter" name="klaus-richter"
role="Schriftfuehrer/TSC-Geschaeftsstelle" role="Schriftfuehrer/TSC-Geschaeftsstelle"
img="img/Klaus_Richter.jpg"
mail="kontakt@tanzsportclub.vfl-sindelfingen.de" mail="kontakt@tanzsportclub.vfl-sindelfingen.de"
>}} >}}
{{< /tsc/person-list >}} {{< /tsc/person-list >}}
{{< tsc/person-list >}} {{< tsc/person-list >}}
{{< tsc/vorstand {{< tsc/vorstand
name="Frank Westerhoff" name="frank-westerhoff"
role="Kasse" role="Kasse"
img="img/Frank_Westerhoff.jpg"
mail="kasse@tanzsportclub.vfl-sindelfingen.de" mail="kasse@tanzsportclub.vfl-sindelfingen.de"
>}} >}}
{{< tsc/vorstand {{< tsc/vorstand
name="Uwe Keck" name="uwe-keck"
role="Zahlungsverkehr" role="Zahlungsverkehr"
img="img/Uwe_Keck.jpg" img="img/Uwe_Keck.jpg"
mail="kasse@tanzsportclub.vfl-sindelfingen.de" mail="kasse@tanzsportclub.vfl-sindelfingen.de"
@ -42,34 +39,30 @@ Ein jeder Club benötigt einen Vorstand, der die Vereinsführung übernimmt und
{{< tsc/person-list >}} {{< tsc/person-list >}}
{{< tsc/vorstand {{< tsc/vorstand
name="Klaus Anrdt" name="klaus-arndt"
role="Mitgliederverwaltung" role="Mitgliederverwaltung"
img="img/Klaus_Arndt.jpg"
mail="mitgliederverwaltung@tanzsportclub.vfl-sindelfingen.de" mail="mitgliederverwaltung@tanzsportclub.vfl-sindelfingen.de"
>}} >}}
{{< tsc/vorstand {{< tsc/vorstand
name="Anja Vollmer" name="anja-vollmer"
role="Mitgliederverwaltung" role="Mitgliederverwaltung"
img="img/Anja_Vollmer.jpg"
mail="mitgliederverwaltung@tanzsportclub.vfl-sindelfingen.de" mail="mitgliederverwaltung@tanzsportclub.vfl-sindelfingen.de"
>}} >}}
{{< tsc/vorstand {{< tsc/vorstand
name="Axel Fedeler" name="axel-fedeler"
role="Mitgliederverwaltung" role="Mitgliederverwaltung"
img="img/Axel_Fedeler.jpg"
mail="mitgliederverwaltung@tanzsportclub.vfl-sindelfingen.de" mail="mitgliederverwaltung@tanzsportclub.vfl-sindelfingen.de"
>}} >}}
{{< /tsc/person-list >}} {{< /tsc/person-list >}}
{{< tsc/person-list >}} {{< tsc/person-list >}}
{{< tsc/vorstand {{< tsc/vorstand
name="Alexander Kieper" name="alexander-kieper"
role="Sportwart" role="Sportwart"
img="img/Alexander_Kieper.jpg"
mail="sportwart@tanzsportclub.vfl-sindelfingen.de" mail="sportwart@tanzsportclub.vfl-sindelfingen.de"
>}} >}}
{{< tsc/vorstand {{< tsc/vorstand
name="Christian Wolf" name="christian-wolf"
role="Stellv. Sportwart" role="Stellv. Sportwart"
img="img/Christian_Wolf.jpg" img="img/Christian_Wolf.jpg"
mail="sportwart@tanzsportclub.vfl-sindelfingen.de" mail="sportwart@tanzsportclub.vfl-sindelfingen.de"
@ -78,31 +71,28 @@ Ein jeder Club benötigt einen Vorstand, der die Vereinsführung übernimmt und
{{< tsc/person-list >}} {{< tsc/person-list >}}
{{< tsc/vorstand {{< tsc/vorstand
name="Petra Kohler" name="petra-kohler"
role="Breitensportwartin" role="Breitensportwartin"
img="img/Petra_Kohler.jpg"
mail="breitensportwart@tanzsportclub.vfl-sindelfingen.de" mail="breitensportwart@tanzsportclub.vfl-sindelfingen.de"
>}} >}}
{{< /tsc/person-list >}} {{< /tsc/person-list >}}
{{< tsc/person-list >}} {{< tsc/person-list >}}
{{< tsc/vorstand {{< tsc/vorstand
name="Anna Ceglarski" name="anna-ceglarski"
role="Veranstaltungen" role="Veranstaltungen"
img="img/Anna_Ceglarski.jpg"
mail="veranstaltungen@tanzsportclub.vfl-sindelfingen.de" mail="veranstaltungen@tanzsportclub.vfl-sindelfingen.de"
>}} >}}
{{< /tsc/person-list >}} {{< /tsc/person-list >}}
{{< tsc/person-list >}} {{< tsc/person-list >}}
{{< tsc/vorstand {{< tsc/vorstand
name="Martin Schatke" name="martin-schatke"
role="Jugendwart" role="Jugendwart"
img="img/Martin_Schatke.jpg"
mail="jugend@tanzsportclub.vfl-sindelfingen.de" mail="jugend@tanzsportclub.vfl-sindelfingen.de"
>}} >}}
{{< tsc/vorstand {{< tsc/vorstand
name="Olivia Paprotny" name="olivia-paprotny"
role="Stellv. Jugendwartin" role="Stellv. Jugendwartin"
img="img/Olivia_Paprotny.jpg" img="img/Olivia_Paprotny.jpg"
>}} >}}
@ -110,81 +100,69 @@ Ein jeder Club benötigt einen Vorstand, der die Vereinsführung übernimmt und
{{< tsc/person-list >}} {{< tsc/person-list >}}
{{< tsc/vorstand {{< tsc/vorstand
name="Diane Mongellaz" name="diane-mongellaz"
role="Presse" role="Presse"
img="img/Diane_Mongellaz.jpg"
mail="presse@tanzsportclub.vfl-sindelfingen.de" mail="presse@tanzsportclub.vfl-sindelfingen.de"
>}} >}}
{{< tsc/vorstand {{< tsc/vorstand
name="Katharina Pfaffenrot" name="katharina-pfaffenrot"
role="Presse" role="Presse"
img="img/Katharina_Pfaffenrot.jpg"
mail="presse@tanzsportclub.vfl-sindelfingen.de" mail="presse@tanzsportclub.vfl-sindelfingen.de"
>}} >}}
{{< tsc/vorstand {{< tsc/vorstand
name="Nelly Fuchs" name="nelly-fuchs"
role="Presse" role="Presse"
img="img/Nelly_Fuchs.jpeg"
mail="presse@tanzsportclub.vfl-sindelfingen.de" mail="presse@tanzsportclub.vfl-sindelfingen.de"
>}} >}}
{{< /tsc/person-list >}} {{< /tsc/person-list >}}
{{< tsc/person-list >}} {{< tsc/person-list >}}
{{< tsc/vorstand {{< tsc/vorstand
name="Maren Spengler" name="maren-spengler"
role="Dancestyles" role="Dancestyles"
img="img/Maren_Spengler.jpg"
mail="dance-styles@tanzsportclub.vfl-sindelfingen.de" mail="dance-styles@tanzsportclub.vfl-sindelfingen.de"
>}} >}}
{{< tsc/vorstand {{< tsc/vorstand
name="Britta Sigmund" name="britta-sigmund"
role="Stellv. Dancestyles" role="Stellv. Dancestyles"
img="img/Britta_Sigmund.jpg"
mail="dance-styles@tanzsportclub.vfl-sindelfingen.de" mail="dance-styles@tanzsportclub.vfl-sindelfingen.de"
>}} >}}
{{< tsc/vorstand {{< tsc/vorstand
name="Kim Wustrack" name="kim-wustrack"
role="Stellv. Dancestyles" role="Stellv. Dancestyles"
img="img/Kim_Wustrack.jpg"
mail="dance-styles@tanzsportclub.vfl-sindelfingen.de" mail="dance-styles@tanzsportclub.vfl-sindelfingen.de"
>}} >}}
{{< tsc/vorstand {{< tsc/vorstand
name="Franziska Bader" name="franziska-bader"
role="Stellv. Dancestyles" role="Stellv. Dancestyles"
img="img/Franziska_Bader.jpg"
>}} >}}
{{< /tsc/person-list >}} {{< /tsc/person-list >}}
{{< tsc/person-list >}} {{< tsc/person-list >}}
{{< tsc/vorstand {{< tsc/vorstand
name="Bernd Peter" name="bernd-peter"
role="Webmaster" role="Webmaster"
img="img/Bernd_Peter.jpg"
mail="vflwebmaster@bptr.de" mail="vflwebmaster@bptr.de"
>}} >}}
{{< tsc/vorstand {{< tsc/vorstand
name="Christian Wolf" name="christian-wolf"
role="Stellv. Webmaster" role="Stellv. Webmaster"
img="img/Christian_Wolf.jpg"
mail="vizesportwart@tsc-vfl.de" mail="vizesportwart@tsc-vfl.de"
>}} >}}
{{< /tsc/person-list >}} {{< /tsc/person-list >}}
{{< tsc/person-list >}} {{< tsc/person-list >}}
{{< tsc/vorstand {{< tsc/vorstand
name="Klaus Richter" name="klaus-richter"
role="Gebaeude" role="Gebaeude"
img="img/Klaus_Richter.jpg"
mail="kontakt@tanzsportclub.vfl-sindelfingen.de" mail="kontakt@tanzsportclub.vfl-sindelfingen.de"
>}} >}}
{{< tsc/vorstand {{< tsc/vorstand
name="Stefan Dietl" name="stefan-dietl"
role="Gebaeude" role="Gebaeude"
img="img/Stefan_Dietl.jpg"
>}} >}}
{{< tsc/vorstand {{< tsc/vorstand
name="Joseph Ripp" name="joseph-ripp"
role="Gebaeude" role="Gebaeude"
img="img/male.png"
>}} >}}
{{< /tsc/person-list >}} {{< /tsc/person-list >}}

View File

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

View File

@ -0,0 +1,6 @@
---
title: "Alexander Kieper"
draft: true
image: "Alexander_Kieper.jpg"
headless: true
---

View File

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

@ -0,0 +1,6 @@
---
title: "Anja Vollmer"
draft: true
image: "Anja_Vollmer.jpg"
headless: true
---

View File

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

@ -0,0 +1,6 @@
---
title: "Anja Westerhoff"
draft: true
image: "Anja_Westerhoff.jpg"
headless: true
---

View File

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

@ -0,0 +1,6 @@
---
title: "Anna Ceglarski"
draft: true
image: "Anna_Ceglarski.jpg"
headless: true
---

View File

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

@ -0,0 +1,6 @@
---
title: "Axel Fedeler"
draft: true
image: "Axel_Fedeler.jpg"
headless: true
---

View File

Before

Width:  |  Height:  |  Size: 7.2 KiB

After

Width:  |  Height:  |  Size: 7.2 KiB

View File

@ -0,0 +1,6 @@
---
title: "Bernd Peter"
draft: true
image: "Bernd_Peter.jpg"
headless: true
---

View File

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

@ -0,0 +1,6 @@
---
title: "Britta Sigmund"
draft: true
image: "Britta_Sigmund.jpg"
headless: true
---

View File

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

View File

@ -0,0 +1,6 @@
---
title: "Christian Wolf"
draft: true
image: "Christian_Wolf.jpg"
headless: true
---

View File

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

View File

@ -0,0 +1,6 @@
---
title: "Diane Mongellaz"
draft: true
image: "Diane_Mongellaz.jpg"
headless: true
---

View File

Before

Width:  |  Height:  |  Size: 5.0 KiB

After

Width:  |  Height:  |  Size: 5.0 KiB

View File

@ -0,0 +1,6 @@
---
title: "Frank Westerhoff"
draft: true
image: "Frank_Westerhoff.jpg"
headless: true
---

View File

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

View File

@ -0,0 +1,6 @@
---
title: "Franziska Bade"
draft: true
image: "Franziska_Bader.jpg"
headless: true
---

View File

@ -0,0 +1,6 @@
---
title: "Joseph Ripp"
draft: true
image: ""
headless: true
---

View File

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

View File

@ -0,0 +1,6 @@
---
title: "Katarina Pfaffenrot"
draft: true
image: "Katharina_Pfaffenrot.jpg"
headless: true
---

View File

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

View File

@ -0,0 +1,6 @@
---
title: "Kim Wustrack"
draft: true
image: "Kim_Wustrack.jpg"
headless: true
---

View File

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

View File

@ -0,0 +1,6 @@
---
title: "Klaus Arndt"
draft: true
image: "Klaus_Arndt.jpg"
headless: true
---

View File

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

View File

@ -0,0 +1,6 @@
---
title: "Klaus Richter"
draft: true
image: "Klaus_Richter.jpg"
headless: true
---

View File

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

View File

@ -0,0 +1,6 @@
---
title: "Maren Spengler"
draft: true
image: "Maren_Spengler.jpg"
headless: true
---

View File

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

@ -0,0 +1,6 @@
---
title: "Martin Schatke"
draft: true
image: "Martin_Schatke.jpg"
headless: true
---

View File

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

@ -0,0 +1,6 @@
---
title: "Nelly Fuchs"
draft: true
image: "Nelly_Fuchs.jpeg"
headless: true
---

View File

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 34 KiB

View File

@ -0,0 +1,6 @@
---
title: "Olivia Paprotny"
draft: true
image: "Olivia_Paprotny.jpg"
headless: true
---

View File

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 3.0 KiB

View File

@ -0,0 +1,6 @@
---
title: "Petra Kohler"
draft: true
image: "Petra_Kohler.jpg"
headless: true
---

View File

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

View File

@ -0,0 +1,6 @@
---
title: "Stefan Dietl"
draft: true
image: "Stefan_Dietl.jpg"
headless: true
---

View File

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

View File

@ -0,0 +1,6 @@
---
title: "Uwe Keck"
draft: true
image: "Uwe_Keck.jpg"
headless: true
---

View File

@ -0,0 +1,6 @@
---
title: "{{ replace .Name "-" " " | title }}"
draft: true
image: ""
headless: true
---

View File

@ -1,8 +1,8 @@
<div class="person"> <div class="person">
<div class="image"> <div class="image">
{{- $person := . -}} {{- $param := . -}}
{{- with .Get "img" -}} {{- with .image -}}
<img src="{{ . }}" {{ with $person.Get "name" }}alt="Bild {{ . }}"{{ end }}> <img src="{{ .RelPermalink }}" {{ with $param.name }}alt="Bild {{ . }}"{{ end }}>
{{- end -}} {{- end -}}
</div> </div>

View File

@ -1,11 +1,35 @@
{{ partial "tsc/start-person" . }} {{ with .Site.GetPage "person" }}
<div class="content content-vorstand"> {{/*{{ $person := . }}*/}}
<div class="role">{{ .Get "role" }}</div> {{ with .GetPage ($.Get "name") }}
{{ $imageName := .Params.Get "image" }}
{{ $image := "" }}
{{ with .Resources.GetMatch $imageName}}
{{ $image = . }}
{{ else }}
{{ warnf "Image for %s is not correclty found. Falling back to default." ($.Get "name") }}
{{ with .Resources.ByType "image" }}
{{ $image = index . 0 }}
{{ else }}
{{/* $image */}}
{{ end }}
{{ end }}
{{ $config :=
dict
"image" $image
"name" (.Params.Get "title")
}}
{{ partial "tsc/start-person" $config }}
<div class="content content-vorstand">
<div class="role">{{ $.Get "role" }}</div>
<div class="name"> <div class="name">
{{ with .Get "mail" }} {{ with $.Get "mail" }}
<a href="mailto:{{ . }}"><img src="/img/mail.jpg" class="mail-icon"></a> <a href="mailto:{{ . }}"><img src="/img/mail.jpg" class="mail-icon"></a>
{{ end }} {{ end }}
{{ .Get "name" }} {{ .Params.Get "title" }}
</div> </div>
</div> </div>
{{ partial "tsc/end-person" . }} {{ partial "tsc/end-person" . }}
{{ else }}
{{ errorf "Cannot find person %s." ($.Get "name") }}
{{ end }}
{{ end }}

View File

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB