forked from website/openpower.foundation
				
			
			You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			26 lines
		
	
	
		
			725 B
		
	
	
	
		
			JSON
		
	
			
		
		
	
	
			26 lines
		
	
	
		
			725 B
		
	
	
	
		
			JSON
		
	
| {{- $.Scratch.Add "index" slice -}}
 | |
| {{- $.Scratch.Add "groups" slice -}}
 | |
| {{- range .Data.Pages -}}
 | |
| 	{{- $membercode := .File.BaseFileName -}}
 | |
| 	{{- range where .Site.RegularPages "Section" "groups" -}}
 | |
| 		{{- $wgname := .Title | plainify -}}
 | |
| 		{{- if .Param "members" -}}
 | |
| 			{{- range $member := .Param "members" -}}
 | |
| 				{{- if eq $member $membercode -}}
 | |
| 					{{- $.Scratch.Add "groups" $wgname -}}
 | |
| 				{{- end -}}
 | |
| 			{{- end -}}
 | |
| 		{{- end -}}
 | |
| 	{{- end -}}
 | |
| 	{{- $.Scratch.Add "index" (dict
 | |
| 		"title" .Title
 | |
| 		"permalink" .RelPermalink
 | |
| 		"contents" .Plain
 | |
| 		"level" .Params.level
 | |
| 		"joined" .Params.joined
 | |
| 		"country" .Params.country
 | |
| 		"groups" ($.Scratch.Get "groups")
 | |
| 	) }}
 | |
| {{- end -}}
 | |
| {{- $.Scratch.Get "index" | jsonify -}}
 |