diff --git a/themes/openpowerfoundation/layouts/boardofdirectors/list.html b/themes/openpowerfoundation/layouts/boardofdirectors/list.html index 08238d6..aed9a15 100644 --- a/themes/openpowerfoundation/layouts/boardofdirectors/list.html +++ b/themes/openpowerfoundation/layouts/boardofdirectors/list.html @@ -5,33 +5,37 @@

{{ .Title }}

{{ range .Data.Pages.ByWeight }} - {{ $personfilename := .File.BaseFileName }} - {{ $personfile := printf "%s/%s" "persons" $personfilename }} -
-
- {{ with $.Site.GetPage $personfile }} - {{ if .Param "image" }} - {{ $imagename := .Param "image" }} - {{ $imagelocation := (printf "%s/%s" "images/persons/" $imagename) }} - {{ $imageresource := resources.Get $imagelocation }} - {{ $image := $imageresource.Fit "390x390 webp" }} - {{ .Title }} - {{ else }} - {{ .Title }} - {{ end }} - {{ end }} -
-
-

{{ .Title }}, {{ .Param "position" }}

+ {{ $start := time (.Param "start") }} + {{ $end := time (.Param "end") }} + {{ if and (le now $end) (ge now $start) }} + {{ $personfilename := .File.BaseFileName }} + {{ $personfile := printf "%s/%s" "persons" $personfilename }} +
+
{{ with $.Site.GetPage $personfile }} - {{ $memberfile := printf "%s/%s" "members" (.Param "member") }} - {{ with $.Site.GetPage $memberfile }} -

{{ .Title }}

+ {{ if .Param "image" }} + {{ $imagename := .Param "image" }} + {{ $imagelocation := (printf "%s/%s" "images/persons/" $imagename) }} + {{ $imageresource := resources.Get $imagelocation }} + {{ $image := $imageresource.Fit "390x390 webp" }} + {{ .Title }} + {{ else }} + {{ .Title }} {{ end }} -

{{ .Content }}

{{ end }} -
-
+
+
+

{{ .Title }}, {{ .Param "position" }}

+ {{ with $.Site.GetPage $personfile }} + {{ $memberfile := printf "%s/%s" "members" (.Param "member") }} + {{ with $.Site.GetPage $memberfile }} +

{{ .Title }}

+ {{ end }} +

{{ .Content }}

+ {{ end }} +
+
+ {{ end }} {{ end }}