change the member allocation from content to data

Signed-off-by: Toshaan Bharvani <toshaan@vantosh.com>
remotes/1690132257852795115/master
Toshaan Bharvani 2 years ago
parent a1fdd55261
commit f72876ac33

@ -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 }}
<li><a href="{{ $wgurl }}">{{ $wgname }}</a></li>
{{ end }}
{{ end }}

Loading…
Cancel
Save