forked from laurens/fediversity_website
Toevoegen foto van sprekers als persoonlijke gegevens bestaan
This commit is contained in:
parent
45135c71f8
commit
dcdb7e2fca
|
@ -2,6 +2,19 @@
|
|||
{{ with .Title }}<h1>{{ . }}</h1>{{ end }}
|
||||
<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 }}
|
||||
<h2>Presentatie</h2>
|
||||
{{ if findRE `.pdf$` .Params.presentation.filename 1 }}
|
||||
|
@ -18,4 +31,5 @@
|
|||
<a href="{{ .Params.recording.url }}">Bekijk opname</a>
|
||||
{{ end }}
|
||||
|
||||
|
||||
{{ end }}
|
||||
|
|
Reference in a new issue