21 lines
699 B
HTML
21 lines
699 B
HTML
{{- /* Render data/collaborators.yaml, grouping by the single `past` flag. */ -}}
|
|
{{- $all := hugo.Data.collaborators -}}
|
|
{{- $current := where $all "past" "!=" true -}}
|
|
{{- $past := where $all "past" true -}}
|
|
<h2 id="collaborators">Collaborators</h2>
|
|
<ul>
|
|
{{- range $current }}
|
|
{{- $u := .url }}
|
|
<li>{{ if $u }}<a href="{{ $u }}">{{ end }}{{ .name }}{{ if $u }}</a>{{ end }}{{ with .affiliation }}, {{ . }}{{ end }}</li>
|
|
{{- end }}
|
|
</ul>
|
|
{{- with $past }}
|
|
<h2 id="wider-network">Wider network</h2>
|
|
<ul>
|
|
{{- range . }}
|
|
{{- $u := .url }}
|
|
<li>{{ if $u }}<a href="{{ $u }}">{{ end }}{{ .name }}{{ if $u }}</a>{{ end }}{{ with .affiliation }}, {{ . }}{{ end }}</li>
|
|
{{- end }}
|
|
</ul>
|
|
{{- end -}}
|