From d5966fe232e5f5aa4d48b5bf16f7ae3c98cf0141 Mon Sep 17 00:00:00 2001 From: Toshaan Bharvani Date: Thu, 9 Dec 2021 11:57:03 +0100 Subject: [PATCH] put platinum members on first page Signed-off-by: Toshaan Bharvani --- themes/openpowerfoundation/layouts/index.html | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/themes/openpowerfoundation/layouts/index.html b/themes/openpowerfoundation/layouts/index.html index 056c874..811ab57 100644 --- a/themes/openpowerfoundation/layouts/index.html +++ b/themes/openpowerfoundation/layouts/index.html @@ -78,20 +78,20 @@

{{ .Param "sections.section-supporters.title" }}

+ {{ range where .Site.RegularPages "Section" "members" }} {{ $level := .Param "level" }} {{ if eq $level "platinum" }} {{ if .Param "image" }} - - {{ $imagename := .Param "image" }} - {{ $imagelocation := (printf "%s/%s" "images/" $imagename) }} - {{ $imageresource := resources.Get $imagelocation }} - {{ $image := $imageresource.Fit "180x102" }} -
- {{ .Title }} -
+ {{ $imagename := .Param "image" }} + {{ $imagelocation := (printf "%s/%s" "images/members/" $imagename) }} + {{ $imageresource := resources.Get $imagelocation }} + {{ $image := $imageresource.Resize "185x102" }} +
+ {{ .Title }} +
{{ end }} - {{ end }} - + {{ end }} + {{ end }}