From 88cb5357b87779f93a24cb60ea1466094a884d9f Mon Sep 17 00:00:00 2001 From: Toshaan Bharvani Date: Thu, 19 Aug 2021 21:30:50 +0200 Subject: [PATCH] adjust for co-chair posibility Signed-off-by: Toshaan Bharvani --- .../layouts/steeringcommittee/list.html | 75 ++++++++++--------- 1 file changed, 39 insertions(+), 36 deletions(-) diff --git a/themes/openpowerfoundation/layouts/steeringcommittee/list.html b/themes/openpowerfoundation/layouts/steeringcommittee/list.html index 2a9d1ed..7814803 100644 --- a/themes/openpowerfoundation/layouts/steeringcommittee/list.html +++ b/themes/openpowerfoundation/layouts/steeringcommittee/list.html @@ -67,48 +67,51 @@
{{ range where .Site.RegularPages "Section" "groups" }} {{ $wgname := .Title }} - {{ $chairfile := printf "%s/%s" "persons" (.Param "chair") }} - {{ with $.Site.GetPage $chairfile }} -
-
-
-

{{ .Title }}

({{ $wgname }})
-
- {{ $member := .Param "member" }} - {{ range where .Site.RegularPages "Section" "members" }} - {{ $membercompany := .File.BaseFileName }} - {{ if eq $member $membercompany }} - - {{ if .Param "image" }} - {{ $imagename := .Param "image" }} - {{ $imagelocation := (printf "%s/%s" "images/members/" $imagename) }} - {{ $imageresource := resources.Get $imagelocation }} - {{ $image := $imageresource.Fit "100x100" }} - {{ .Title }} - {{ else }} - {{ .Title }} + {{ $chairs := .Param "chair" }} + {{ range $chairs }} + {{ $chairfile := printf "%s/%s" "persons" . }} + {{ with $.Site.GetPage $chairfile }} + -
-
- {{ if .Param "image" }} - {{ $imagename := .Param "image" }} - {{ $imagelocation := (printf "%s/%s" "images/persons/" $imagename) }} - {{ $imageresource := resources.Get $imagelocation }} - {{ $image := $imageresource.Fit "200x400" }} - {{ .Title }} - {{ else }} -   - {{ end }} +
+
+ {{ if .Param "image" }} + {{ $imagename := .Param "image" }} + {{ $imagelocation := (printf "%s/%s" "images/persons/" $imagename) }} + {{ $imageresource := resources.Get $imagelocation }} + {{ $image := $imageresource.Fit "100x400" }} + {{ .Title }} + {{ else }} +   + {{ end }} +
+
{{ .Content }}
-
{{ .Content }}
-
+ {{ end }} {{ end }} {{ end }}