Added person data for page Trainer

This commit is contained in:
Christian Wolf 2023-01-20 16:20:02 +01:00
parent 7fe934ad0a
commit d7f298db6a
23 changed files with 198 additions and 2 deletions

View File

@ -8,4 +8,84 @@ menu:
weight: 3
---
dfewr
## Standard & Latein Erwachsene
{{< tsc/person-list >}}
{{< tsc/trainer
name="rolandas-trembo" >}}
{{< /tsc/person-list >}}
## Standard & Latein Kinder, Jugend Turnier / Turnieraufbau 
{{< tsc/person-list >}}
{{< tsc/trainer
name="christine-melcher" >}}
{{< tsc/trainer
name="domenico-franzo" >}}
{{< tsc/trainer
name="chaska-huaman-bursztyn" >}}
{{< /tsc/person-list >}}
## Breitensport
{{< tsc/person-list >}}
{{< tsc/trainer
name="klaus-richter" >}}
{{< /tsc/person-list >}}
## Tanzkreise
{{< tsc/person-list >}}
{{< tsc/trainer
name="suzana-koester-manojlovic" >}}
{{< tsc/trainer
name="tina-grassl" >}}
{{< tsc/trainer
name="raimund-rieger" >}}
{{< tsc/trainer
name="stefan-dietl" >}}
{{< /tsc/person-list >}}
## Discofox
{{< tsc/person-list >}}
{{< tsc/trainer
name="stefan-dietl" >}}
{{< /tsc/person-list >}}
 
## Dance-Styles
{{< tsc/person-list >}}
{{< tsc/trainer
name="maren-spengler" >}}
{{< tsc/trainer
name="kim-wustrack" >}}
{{< tsc/trainer
name="suzana-koester-manojlovic" >}}
{{< tsc/trainer
name="linda-klauss" >}}
{{< tsc/trainer
name="olivia-paprotny" >}}
{{< tsc/trainer
name="franziska-bader" >}}
{{< tsc/trainer
name="katharina-pfaffenrot" >}}
{{< tsc/trainer
name="christine-melcher" >}}
{{< tsc/trainer
name="leonie-weinhardt" >}}
{{< tsc/trainer
name="maike-leditzky" >}}
{{< /tsc/person-list >}}
## Kindertanz
{{< tsc/person-list >}}
{{< tsc/trainer
name="chaska-huaman-bursztyn" >}}
{{< tsc/trainer
name="christine-melcher" >}}
{{< /tsc/person-list >}}

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

@ -0,0 +1,7 @@
---
title: "Chaska Huamán-Bursztyn"
date: 2023-01-20T16:03:15+01:00
draft: true
image: "Chaska-Huaman-Bursztyn.jpg"
---

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

View File

@ -0,0 +1,8 @@
---
title: "Christine Melcher"
date: 2023-01-20T16:03:14+01:00
draft: true
image: "Christine_Melcher.jpg"
sex: female
---

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

View File

@ -0,0 +1,8 @@
---
title: "Domenico Franzo"
date: 2023-01-20T16:03:14+01:00
draft: true
image: "Domenico_Franzo.jpg"
sex: male
---

View File

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

View File

@ -0,0 +1,8 @@
---
title: "Leonie Weinhardt"
date: 2023-01-20T16:03:15+01:00
draft: true
image: Leonie_Weinhardt.jpg
sex: female
---

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

View File

@ -0,0 +1,8 @@
---
title: "Linda Klauß"
date: 2023-01-20T16:03:15+01:00
draft: true
image: Linda_Klauss.jpg
sex: female
---

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

View File

@ -0,0 +1,8 @@
---
title: "Maike Leditzky"
date: 2023-01-20T16:03:16+01:00
draft: true
image: Maike_Leditzky.jpg
sex: female
---

View File

@ -0,0 +1,8 @@
---
title: "Raimund Rieger"
date: 2023-01-20T16:03:15+01:00
draft: true
image: "raimund.jpg"
sex: male
---

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

View File

@ -0,0 +1,7 @@
---
title: "Rolandas Trembo"
draft: true
image: "Rolandas2017.jpg"
sex: male
headless: true
---

View File

@ -0,0 +1,7 @@
---
title: "Suzana Köster-Manojlovic"
draft: true
image: "suzi.jpg"
sex: female
headless: true
---

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

View File

@ -0,0 +1,8 @@
---
title: "Tina Grassl"
date: 2023-01-20T16:03:15+01:00
draft: true
image: "Tina_Grassl.jpg"
sex: female
---

View File

@ -0,0 +1,39 @@
{{ with .Site.GetPage "person" }}
{{ with .GetPage ($.Get "name") }}
{{ $imageName := .Params.Get "image" }}
{{ $image := "" }}
{{ with .Resources.GetMatch $imageName}}
{{ $image = .RelPermalink }}
{{ else }}
{{ warnf "Image for %s is not correclty found. Falling back to default." ($.Get "name") }}
{{ with .Resources.ByType "image" }}
{{ $image = (index . 0).RelPermalink }}
{{ else }}
{{ with .Params.Get "sex" }}
{{ if eq . "male" }}
{{ $image = relURL "img/persons/male.png" }}
{{ else }}
{{ errorf "Generic female icon not found." }}
{{ end }}
{{ else }}
{{ warnf "Cannot find sex of %s." ($.Get "name") }}
{{ end }}
{{ end }}
{{ end }}
{{ $config :=
dict
"image" $image
"name" (.Params.Get "title")
}}
{{ partial "tsc/start-person" $config }}
<div class="content content-trainer">
<div class="name">
{{- .Params.Get "title" -}}
</div>
</div>
{{ partial "tsc/end-person" . }}
{{ else }}
{{ warnf "Cannot find person %s." ($.Get "name") }}
<div class="person">{{ $.Get "name" }}</div>
{{ end }}
{{ end }}