Fix Jana Schäfer's presentation on site
This commit is contained in:
parent
284313da81
commit
9b886892c2
@ -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 >}}
|
||||||
|
@ -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 |
@ -5,16 +5,17 @@
|
|||||||
{{ 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" }}
|
||||||
{{ $image = relURL "img/persons/male.png" }}
|
{{ $image = relURL "img/persons/male.png" }}
|
||||||
{{ 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 }}
|
||||||
|
Loading…
Reference in New Issue
Block a user