diff --git a/themes/openpowerfoundation/layouts/members/single.html b/themes/openpowerfoundation/layouts/members/single.html index b71a4d5..0119ebe 100644 --- a/themes/openpowerfoundation/layouts/members/single.html +++ b/themes/openpowerfoundation/layouts/members/single.html @@ -45,9 +45,10 @@ {{ range where .Site.RegularPages "Section" "groups" }} {{ $wgname := .Title }} {{ $wgurl := .Permalink }} - {{ if .Param "members" }} - {{ range $member := .Param "members" }} - {{ if eq $member $membercode }} + {{ $wgcode := path.Base .Permalink }} + {{ range $wgmembers := (index $.Site.Data.groups.members $wgcode) }} + {{ range $wgmember := $wgmembers }} + {{ if eq $wgmember $membercode }}