forked from laurens/fediversity_website
36 lines
1.1 KiB
HTML
36 lines
1.1 KiB
HTML
{{ define "main" }}
|
|
{{ 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 }}
|
|
{{ partial "show-svg-icon.html" (dict "context" . "icon" "file-pdf") }}
|
|
{{ end }}
|
|
<a href="/bestanden/presentaties/{{ .Params.presentation.filename }}">Presentatie</a>
|
|
{{ end }}
|
|
|
|
{{ if .Params.recording.url }}
|
|
<h2>Opname</h2>
|
|
{{ if .Params.recording.platform }}
|
|
{{ if eq .Params.recording.platform "youtube" }}{{ partial "show-svg-icon.html" (dict "context" . "icon" "youtube") }}{{ end }}
|
|
{{ end }}
|
|
<a href="{{ .Params.recording.url }}">Bekijk opname</a>
|
|
{{ end }}
|
|
|
|
|
|
{{ end }}
|