{{ $col_class := "col-sm-24" }} {{ $dataLocation := .Get 0 }} {{ if not $dataLocation }} {{ if gt (len $.Site.Taxonomies.participation_levels) 1 }} {{ $col_class = "col-sm-18" }}

All members

{{ end }}
{{ range $index, $level := $.Site.Taxonomies.participation_levels }}

{{ humanize $index }}

{{ range .Pages}} {{ .Scratch.Set "link" .RelPermalink }} {{ if .Params.link }} {{ .Scratch.Set "link" .Params.link }} {{ end }} {{ if .Params.member_id }} {{ .Scratch.Set "link" (print "https://www.eclipse.org/membership/showMember.php?member_id=" .Params.member_id) }} {{ end }}

{{ .Title }}

{{ .Summary }}

{{ end }}
{{ end }}
{{ else }} {{ $data:= index $.Site.Data $dataLocation }} {{ if gt (len $data.types) 1 }} {{ $col_class = "col-sm-18" }}

All members

{{ end }}
{{ range $data.types }}

{{ humanize .name }}

{{ range sort .items "title" }} {{ .Scratch.Set "link" .link }} {{ if .Params.member_id }} {{ .Scratch.Set "link" (print "https://www.eclipse.org/membership/showMember.php?member_id=" .member_id) }} {{ end }}

{{ .title }}

{{ if .summary }}

{{ .summary }}

{{ end }}
{{ end }}
{{ end }}
{{ end }}