diff --git a/themes/openpowerfoundation/layouts/hub/list.html b/themes/openpowerfoundation/layouts/hub/list.html index aa15348..af25f60 100644 --- a/themes/openpowerfoundation/layouts/hub/list.html +++ b/themes/openpowerfoundation/layouts/hub/list.html @@ -22,7 +22,25 @@
{{ range .Data.Pages }}
- {{ .Title }} + + {{ if .Param "member" }} + {{ $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" }} + {{ .Title }} + {{ end }} + {{ end }} + {{ end }} + {{ end }} +
+ {{ .Title }} +
{{ end }}