change the member allocation from content to data

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

@ -45,9 +45,10 @@
{{ range where .Site.RegularPages "Section" "groups" }} {{ range where .Site.RegularPages "Section" "groups" }}
{{ $wgname := .Title }} {{ $wgname := .Title }}
{{ $wgurl := .Permalink }} {{ $wgurl := .Permalink }}
{{ if .Param "members" }} {{ $wgcode := path.Base .Permalink }}
{{ range $member := .Param "members" }} {{ range $wgmembers := (index $.Site.Data.groups.members $wgcode) }}
{{ if eq $member $membercode }} {{ range $wgmember := $wgmembers }}
{{ if eq $wgmember $membercode }}
<li><a href="{{ $wgurl }}">{{ $wgname }}</a></li> <li><a href="{{ $wgurl }}">{{ $wgname }}</a></li>
{{ end }} {{ end }}
{{ end }} {{ end }}

Loading…
Cancel
Save