Hugo-based levitation.wales initial commit
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
{{- /* 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 -}}
|
||||
Reference in New Issue
Block a user