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 }}