6
0
Fork 0

Toevoegen foto van sprekers als persoonlijke gegevens bestaan

This commit is contained in:
Michael Boelen 2023-06-07 09:57:24 +02:00
parent 45135c71f8
commit dcdb7e2fca

View file

@ -2,6 +2,19 @@
{{ with .Title }}<h1>{{ . }}</h1>{{ end }} {{ with .Title }}<h1>{{ . }}</h1>{{ end }}
<div>{{ .Content }}</div> <div>{{ .Content }}</div>
{{ if .Params.persons }}
<div>
{{ $count := .Params.persons | len }}
<h2>{{ i18n "speaker" (dict "Count" $count) | strings.FirstUpper }}</h2>
{{ range $person := .Params.persons }}
{{ with (index site.Data.personen $person) }}
{{ partial "show-image-of-person.html" (dict "context" . "profile_details" . "hide_figcaption" true) }}
{{ end }}
{{ end }}
</div>
{{ end }}
{{ if .Params.presentation.filename }} {{ if .Params.presentation.filename }}
<h2>Presentatie</h2> <h2>Presentatie</h2>
{{ if findRE `.pdf$` .Params.presentation.filename 1 }} {{ if findRE `.pdf$` .Params.presentation.filename 1 }}
@ -18,4 +31,5 @@
<a href="{{ .Params.recording.url }}">Bekijk opname</a> <a href="{{ .Params.recording.url }}">Bekijk opname</a>
{{ end }} {{ end }}
{{ end }} {{ end }}