From 8d969a3940e3b1274daae470e0b232926b4ec3ce Mon Sep 17 00:00:00 2001 From: Toshaan Bharvani Date: Thu, 9 Dec 2021 17:22:18 +0100 Subject: [PATCH] refactor the member page internally Signed-off-by: Toshaan Bharvani --- .../layouts/members/list.html | 70 ++++++++++--------- 1 file changed, 37 insertions(+), 33 deletions(-) diff --git a/themes/openpowerfoundation/layouts/members/list.html b/themes/openpowerfoundation/layouts/members/list.html index 2447a92..3325809 100644 --- a/themes/openpowerfoundation/layouts/members/list.html +++ b/themes/openpowerfoundation/layouts/members/list.html @@ -3,47 +3,51 @@ {{ partial "navbar.html" . }}
-
-
-
-

{{ .Title }}

-
+
+
+
+

{{ .Title }}

+
+
{{ $i := 0 }} {{ $data := index $.Site.Data }} {{ range $data.memberlevels }}
-

{{ .name }}

- {{ $key := .identifier }} - {{ $imageheight := .image.height }} - {{ $imagewidth := .image.width }} - {{ $imagesize := printf "%s webp" .size }} - {{ $col := .col }} -
- {{ range $.Site.Pages }} - {{ $level := .Param "level" }} - {{ if eq $level $key }} -
-
- - {{ if .Param "image" }} - {{ $imagename := .Param "image" }} - {{ $imagelocation := (printf "%s/%s" "images/members/" $imagename) }} - {{ $imageresource := resources.Get $imagelocation }} - {{ $image := $imageresource.Fit $imagesize }} - {{ .Title }} - - {{ else }} -

{{ .Param "title" }}

- {{ end }} +

{{ .name }}

+ {{ $key := .identifier }} + {{ $imageheight := .image.height }} + {{ $imagewidth := .image.width }} + {{ $imagesize := printf "%s webp" .size }} + {{ $col := .col }} + + {{ end }} {{ end }} - {{ end }} - - {{ end }} - +
+
+
+ {{ end }} +
+
{{ partial "footer.html" . }}