From 397b246d2aaa7db3b2b28865d0a9b12d02ad23de Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Wed, 24 May 2023 10:20:41 +0200 Subject: [PATCH] Afbeeldingen ook voor teams in grid en maximum breedte --- themes/nluug/layouts/team/single.html | 26 +++++++++----------------- 1 file changed, 9 insertions(+), 17 deletions(-) diff --git a/themes/nluug/layouts/team/single.html b/themes/nluug/layouts/team/single.html index 62ea4d3..c616d40 100644 --- a/themes/nluug/layouts/team/single.html +++ b/themes/nluug/layouts/team/single.html @@ -9,26 +9,18 @@

Team

-
+
{{ range $key,$val := .Params.team_members }} {{ with (index $.Site.Data.personen $val) }} -
- {{ if .thumbnail }} -
- {{ if .profile_page }} - Foto van {{ .name }} - {{ else }} - Foto van {{ .name }} - {{ end }} -
- {{ .name }} -
-
- {{ end }} -
- {{ end }} +
+ {{ if .thumbnail }} + {{ $image := replace .thumbnail "200x200" "150x150" }} + {{ $alttext := printf "Foto van %s" .name }} + {{ partial "show-image.html" (dict "context" . "image" $image "alt" $alttext "figcaption" .name "link" .profile_page) }} + {{ end }} +
{{ end }} + {{ end }}
- {{ end }}