From a8dae1887983340304aaa4022395074f77135df7 Mon Sep 17 00:00:00 2001 From: Toshaan Bharvani Date: Thu, 23 Dec 2021 09:27:26 +0100 Subject: [PATCH] better layout for steering committee * add member logo * better headshot * align columns * process all images to webp Signed-off-by: Toshaan Bharvani --- .../layouts/steeringcommittee/list.html | 104 ++++++++---------- 1 file changed, 47 insertions(+), 57 deletions(-) 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" . }}