Fix Jana Schäfer's presentation on site

This commit is contained in:
Christian Wolf 2024-12-05 11:03:05 +01:00
parent 284313da81
commit 9b886892c2
5 changed files with 5 additions and 4 deletions

View File

@ -93,7 +93,7 @@ aliases:
{{< tsc/trainer {{< tsc/trainer
name="jasmina-hein" >}} name="jasmina-hein" >}}
{{< tsc/trainer {{< tsc/trainer
name="jana.schaefer" >}} name="jana-schaefer" >}}
{{< tsc/trainer {{< tsc/trainer
name="nadine-hennessen" >}} name="nadine-hennessen" >}}
{{< /tsc/person-list >}} {{< /tsc/person-list >}}

View File

@ -1,7 +1,7 @@
--- ---
title: "Jana Schäfer" title: "Jana Schäfer"
draft: false draft: false
image: "placeholder.jpeg" # image: "placeholder.jpeg"
sex: female sex: female
headless: true headless: true
--- ---

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

View File

@ -5,9 +5,9 @@
{{ with .Resources.GetMatch $imageName}} {{ with .Resources.GetMatch $imageName}}
{{ $image = (.Fit "60x80 webp").RelPermalink }} {{ $image = (.Fit "60x80 webp").RelPermalink }}
{{ else }} {{ else }}
{{ warnf "Image for %s is not correclty found. Falling back to default." ($.Get "name") }}
{{ with .Resources.ByType "image" }} {{ with .Resources.ByType "image" }}
{{ $image = ((index . 0).Fit "60x80 webp").RelPermalink }} {{ $image = ((index . 0).Fit "60x80 webp").RelPermalink }}
{{ warnf "Image for %s is not correclty found. Falling back to first found image in page resources." ($.Get "name") }}
{{ else }} {{ else }}
{{ with .Params.sex }} {{ with .Params.sex }}
{{ if eq . "male" }} {{ if eq . "male" }}
@ -15,6 +15,7 @@
{{ else }} {{ else }}
{{ $image = relURL "img/persons/female.png" }} {{ $image = relURL "img/persons/female.png" }}
{{ end }} {{ end }}
{{ warnf "Image for %s is not correclty found. Falling back to generic image." ($.Get "name") }}
{{ else }} {{ else }}
{{ warnf "Cannot find sex of %s." ($.Get "name") }} {{ warnf "Cannot find sex of %s." ($.Get "name") }}
{{ end }} {{ end }}