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
name="jasmina-hein" >}}
{{< tsc/trainer
name="jana.schaefer" >}}
name="jana-schaefer" >}}
{{< tsc/trainer
name="nadine-hennessen" >}}
{{< /tsc/person-list >}}

View File

@ -1,7 +1,7 @@
---
title: "Jana Schäfer"
draft: false
image: "placeholder.jpeg"
# image: "placeholder.jpeg"
sex: female
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}}
{{ $image = (.Fit "60x80 webp").RelPermalink }}
{{ else }}
{{ warnf "Image for %s is not correclty found. Falling back to default." ($.Get "name") }}
{{ with .Resources.ByType "image" }}
{{ $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 }}
{{ with .Params.sex }}
{{ if eq . "male" }}
@ -15,6 +15,7 @@
{{ else }}
{{ $image = relURL "img/persons/female.png" }}
{{ end }}
{{ warnf "Image for %s is not correclty found. Falling back to generic image." ($.Get "name") }}
{{ else }}
{{ warnf "Cannot find sex of %s." ($.Get "name") }}
{{ end }}