From 6b8d74ccf288201931d5dfb24d33a8b1f254b4c6 Mon Sep 17 00:00:00 2001 From: Christian Wolf Date: Thu, 27 Jul 2023 11:40:31 +0200 Subject: [PATCH] Fix page after upgrade in Hugo --- .../tsc_vfl/layouts/shortcodes/tsc/trainer.html | 10 +++++----- .../tsc_vfl/layouts/shortcodes/tsc/vorstand.html | 10 +++++----- themes/tsc_vfl/static/img/persons/female.png | Bin 0 -> 1433 bytes 3 files changed, 10 insertions(+), 10 deletions(-) create mode 100644 themes/tsc_vfl/static/img/persons/female.png 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 0000000000000000000000000000000000000000..79c64621851814e6f6aeea493a92c6f5345d4fa8 GIT binary patch literal 1433 zcmV;K1!nq*P)pF8FWQhbW?9;ba!ELWdL_~cP?peYja~^aAhuUa%Y?FJQ@H101R|R zSaeirbZlh+W@T+*Y-K_tsR#f71rA9>K~#90?V3w$lvNbRf9K9jK|yE>C|09Lg-8U1 zl&G}Is}HD&(ajg2jhoUIgCUVb+=&xi7~R4O+J*&mG&L?@QJ};v$^E@;xF)ByD^5_jI0#T1%vcS2ndQw`w*ZyaXif&^!(7L-hT=-JOS{ z(iDl|y49_7B*r#iMYs(5gCJj8^l04Z-hI2ePUK2k&JEW!x4tgQ2i&BCblt@O#^ zWw^0%<2V(%eDgSw;aQ(>FQLQb7h8cxeR8-WqF(iU3=7JeKE=bJh}U!%+HmdK)_K4q zKE=bK^L(O18#ab|pTZ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