diff --git a/themes/nluug/layouts/evenementen/speakers.html b/themes/nluug/layouts/evenementen/speakers.html
index 68c639c..21bc5db 100644
--- a/themes/nluug/layouts/evenementen/speakers.html
+++ b/themes/nluug/layouts/evenementen/speakers.html
@@ -1,14 +1,22 @@
{{ define "main" }}
+ {{ $.Scratch.Set "speakers" slice }}
{{ .Content }}
-
Sprekers
- {{ range $key,$val := $.Site.Data.personen }}
- {{ if eq $val.speaker true }}
+ {{ range where $.Site.RegularPages "Section" "evenementen" }}
+ {{ if .Params.speakers }}
+ {{ $.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) }}
» {{ .name }}
- {{ 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 }}
{{ if not .profile_page }}Deze spreker heeft nog geen profielpagina{{ end }}
{{ end }}
{{ end }}
+ {{ end }}
{{ end }}