Tonen van alle personen die een lezing hebben gegeven
This commit is contained in:
parent
6fd762b3e2
commit
fb4c5b4f7d
|
@ -1,14 +1,22 @@
|
||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
|
{{ $.Scratch.Set "speakers" slice }}
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
|
|
||||||
<h2>Sprekers</h2>
|
{{ range where $.Site.RegularPages "Section" "evenementen" }}
|
||||||
{{ range $key,$val := $.Site.Data.personen }}
|
{{ if .Params.speakers }}
|
||||||
{{ if eq $val.speaker true }}
|
{{ $.Scratch.Add "speakers" .Params.speakers }}
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ if (gt ($.Scratch.Get "speakers" | len) 0) }}
|
||||||
|
{{ range $key,$val := $.Scratch.Get "speakers" | sort | uniq }}
|
||||||
|
{{ with (index $.Site.Data.personen $val) }}
|
||||||
<h3>» {{ .name }}</h3>
|
<h3>» {{ .name }}</h3>
|
||||||
{{ partial "show-image-of-person.html" (dict "context" . "profile_details" $val "hide_figcaption" true "add_link_to_image" true) }}
|
{{ partial "show-image-of-person.html" (dict "context" . "profile_details" . "hide_figcaption" true "add_link_to_image" true) }}
|
||||||
{{ $firstname := index (split .name " ") 0 }}
|
{{ $firstname := index (split .name " ") 0 }}
|
||||||
{{ if not .profile_page }}<small>Deze spreker heeft nog geen profielpagina</small>{{ end }}
|
{{ if not .profile_page }}<small>Deze spreker heeft nog geen profielpagina</small>{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Reference in a new issue