diff --git a/themes/tsc_vfl/layouts/shortcodes/tsc/trainer.html b/themes/tsc_vfl/layouts/shortcodes/tsc/trainer.html
index 661d312..3b1f683 100644
--- a/themes/tsc_vfl/layouts/shortcodes/tsc/trainer.html
+++ b/themes/tsc_vfl/layouts/shortcodes/tsc/trainer.html
@@ -1,6 +1,6 @@
{{ with .Site.GetPage "person" }}
{{ with .GetPage ($.Get "name") }}
- {{ $imageName := .Params.Get "image" }}
+ {{ $imageName := .Params.image }}
{{ $image := "" }}
{{ with .Resources.GetMatch $imageName}}
{{ $image = .RelPermalink }}
@@ -9,11 +9,11 @@
{{ with .Resources.ByType "image" }}
{{ $image = (index . 0).RelPermalink }}
{{ else }}
- {{ with .Params.Get "sex" }}
+ {{ with .Params.sex }}
{{ if eq . "male" }}
{{ $image = relURL "img/persons/male.png" }}
{{ else }}
- {{ errorf "Generic female icon not found." }}
+ {{ $image = relURL "img/persons/female.png" }}
{{ end }}
{{ else }}
{{ warnf "Cannot find sex of %s." ($.Get "name") }}
@@ -23,12 +23,12 @@
{{ $config :=
dict
"image" $image
- "name" (.Params.Get "title")
+ "name" (.Params.title)
}}
{{ partial "tsc/start-person" $config }}
- {{- .Params.Get "title" -}}
+ {{- .Params.title -}}
{{ partial "tsc/end-person" . }}
diff --git a/themes/tsc_vfl/layouts/shortcodes/tsc/vorstand.html b/themes/tsc_vfl/layouts/shortcodes/tsc/vorstand.html
index 5ce67f6..3eb6dc6 100644
--- a/themes/tsc_vfl/layouts/shortcodes/tsc/vorstand.html
+++ b/themes/tsc_vfl/layouts/shortcodes/tsc/vorstand.html
@@ -1,6 +1,6 @@
{{ with .Site.GetPage "person" }}
{{ with .GetPage ($.Get "name") }}
- {{ $imageName := .Params.Get "image" }}
+ {{ $imageName := .Params.image }}
{{ $image := "" }}
{{ with .Resources.GetMatch $imageName}}
{{ $image = .RelPermalink }}
@@ -9,11 +9,11 @@
{{ with .Resources.ByType "image" }}
{{ $image = (index . 0).RelPermalink }}
{{ else }}
- {{ with .Params.Get "sex" }}
+ {{ with .Params.sex }}
{{ if eq . "male" }}
{{ $image = relURL "img/persons/male.png" }}
{{ else }}
- {{ errorf "Generic female icon not found." }}
+ {{ $image = relURL "img/persons/female.png" }}
{{ end }}
{{ else }}
{{ warnf "Cannot find sex of %s." ($.Get "name") }}
@@ -23,7 +23,7 @@
{{ $config :=
dict
"image" $image
- "name" (.Params.Get "title")
+ "name" (.Params.title)
}}
{{ partial "tsc/start-person" $config }}
@@ -32,7 +32,7 @@
{{ with $.Get "mail" }}
{{ end }}
- {{ .Params.Get "title" }}
+ {{ .Params.title }}
{{ partial "tsc/end-person" . }}
diff --git a/themes/tsc_vfl/static/img/persons/female.png b/themes/tsc_vfl/static/img/persons/female.png
new file mode 100644
index 0000000..79c6462
Binary files /dev/null and b/themes/tsc_vfl/static/img/persons/female.png differ