diff --git a/content/page/club/trainer/index.md b/content/page/club/trainer/index.md index c6dbf1e..22c6b1c 100644 --- a/content/page/club/trainer/index.md +++ b/content/page/club/trainer/index.md @@ -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 >}} diff --git a/content/person/jana-schaefer/index.md b/content/person/jana-schaefer/index.md index 2a2e47e..1f7512b 100644 --- a/content/person/jana-schaefer/index.md +++ b/content/person/jana-schaefer/index.md @@ -1,7 +1,7 @@ --- title: "Jana Schäfer" draft: false -image: "placeholder.jpeg" +# image: "placeholder.jpeg" sex: female headless: true --- diff --git a/content/person/jana-schaefer/placeholder.jpeg b/content/person/jana-schaefer/placeholder.jpeg deleted file mode 100644 index 6e1240b..0000000 Binary files a/content/person/jana-schaefer/placeholder.jpeg and /dev/null differ diff --git a/content/person/jana-schaefer/placeholder.png b/content/person/jana-schaefer/placeholder.png deleted file mode 100644 index 1f3f1c3..0000000 Binary files a/content/person/jana-schaefer/placeholder.png and /dev/null differ diff --git a/themes/tsc_vfl/layouts/shortcodes/tsc/trainer.html b/themes/tsc_vfl/layouts/shortcodes/tsc/trainer.html index 603859d..49fe74e 100644 --- a/themes/tsc_vfl/layouts/shortcodes/tsc/trainer.html +++ b/themes/tsc_vfl/layouts/shortcodes/tsc/trainer.html @@ -5,16 +5,17 @@ {{ 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" }} {{ $image = relURL "img/persons/male.png" }} {{ else }} - {{ $image = relURL "img/persons/female.png" }} + {{ $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 }}