21 lines
918 B
HTML
21 lines
918 B
HTML
{{- /* Build the roster from the member pages under /people. Each person's
|
|
status lives once, in their own front matter: set `alumnus: true`
|
|
for past members. */ -}}
|
|
{{- $people := (site.GetPage "/people").Pages -}}
|
|
{{- $current := where $people "Params.alumnus" "!=" true -}}
|
|
{{- $alumni := where $people "Params.alumnus" true -}}
|
|
<h2 id="group">Group</h2>
|
|
<ul>
|
|
{{- range $current.ByWeight }}
|
|
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a>{{ with .Params.role }}, {{ . }}{{ end }}{{ with .Params.links }}{{ range . }} · <a href="{{ .url }}">{{ .name }}</a>{{ end }}{{ end }}</li>
|
|
{{- end }}
|
|
</ul>
|
|
{{- with $alumni }}
|
|
<h2 id="alumni">Alumni</h2>
|
|
<ul>
|
|
{{- range .ByWeight }}
|
|
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a>{{ with .Params.role }}, {{ . }}{{ end }}{{ with .Params.links }}{{ range . }} · <a href="{{ .url }}">{{ .name }}</a>{{ end }}{{ end }}</li>
|
|
{{- end }}
|
|
</ul>
|
|
{{- end -}}
|