diff --git a/themes/openpowerfoundation/layouts/steeringcommittee/list.html b/themes/openpowerfoundation/layouts/steeringcommittee/list.html index 216ed64..f681745 100644 --- a/themes/openpowerfoundation/layouts/steeringcommittee/list.html +++ b/themes/openpowerfoundation/layouts/steeringcommittee/list.html @@ -1,34 +1,27 @@ {{ partial "header.html" . }} - {{ partial "navbar.html" . }} -
-

{{ .Title }}

-

{{ .Content }}

{{ range .Data.Pages.ByWeight }} -
+
-
-
+
+

{{ .Title }}

- ({{ .Param "position" }}) +

{{ .Param "position" }}

-
-
-
- {{ $personfile := .File.BaseFileName }} - {{ range where .Site.RegularPages "Section" "persons" }} +
+ {{ $personfile := .File.BaseFileName }} + {{ range where .Site.RegularPages "Section" "persons" }} {{ $person := .File.BaseFileName }} {{ if eq $personfile $person }} -
-
+
{{ if .Param "image" }} {{ $imagename := .Param "image" }} {{ $imagelocation := (printf "%s/%s" "images/persons/" $imagename) }} {{ $imageresource := resources.Get $imagelocation }} - {{ $image := $imageresource.Fit "200x400" }} + {{ $image := $imageresource.Fit "200x400 webp" }} {{ .Title }} {{ else }}   @@ -77,48 +69,48 @@ {{ $chairfile := printf "%s/%s" "persons" . }} {{ with $.Site.GetPage $chairfile }}
-
-
-
-
- {{ $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 webp" }} - {{ .Title }} - {{ else }} - {{ .Title }} - {{ end }} - - {{ end }} - {{ end }} -
-
+
+
+
+
+

{{ .Title }}

+

{{ $wgname }}

- +
+
+ {{ if .Param "image" }} + {{ $imagename := .Param "image" }} + {{ $imagelocation := (printf "%s/%s" "images/persons/" $imagename) }} + {{ $imageresource := resources.Get $imagelocation }} + {{ $image := $imageresource.Fit "200x400 webp" }} + {{ .Title }} + {{ else }} +   + {{ end }} +
+
{{ .Content }}
+
+
{{ end }} {{ end }} @@ -126,7 +118,5 @@
-
- {{ partial "footer.html" . }}