Fix Jana Schäfer's presentation on site
This commit is contained in:
parent
284313da81
commit
9b886892c2
@ -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 >}}
|
||||
|
@ -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 |
@ -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 }}
|
||||
|
Loading…
Reference in New Issue
Block a user