Correcte weergave van presentie en/of filmopname

This commit is contained in:
Michael Boelen 2023-06-06 20:47:46 +02:00
parent df09604838
commit ba0052b53c

View file

@ -2,21 +2,20 @@
{{ with .Title }}<h1>{{ . }}</h1>{{ end }} {{ with .Title }}<h1>{{ . }}</h1>{{ end }}
<div>{{ .Content }}</div> <div>{{ .Content }}</div>
{{ if .Params.presentation }} {{ if .Params.presentation.filename }}
<h2>Presentatie</h2> <h2>Presentatie</h2>
{{ if .Params.presentation.filename }} {{ if findRE `.pdf$` .Params.presentation.filename 1 }}
<a href="/bestanden/presentaties/{{ .Params.presentation.filename }}">Presentatie</a> {{ partial "show-svg-icon.html" (dict "context" . "icon" "file-pdf") }}
{{ end }} {{ end }}
<a href="/bestanden/presentaties/{{ .Params.presentation.filename }}">Presentatie</a>
{{ end }} {{ end }}
{{ if .Params.recording }} {{ if .Params.recording.url }}
<h2>Opname</h2> <h2>Opname</h2>
{{ if .Params.recording.platform }} {{ if .Params.recording.platform }}
{{ if eq .Params.recording.platform "youtube" }}{{ partial "show-svg-icon.html" (dict "context" . "icon" "youtube") }}{{ end }} {{ if eq .Params.recording.platform "youtube" }}{{ partial "show-svg-icon.html" (dict "context" . "icon" "youtube") }}{{ end }}
{{ end }} {{ end }}
{{ if .Params.recording.url }} <a href="{{ .Params.recording.url }}">Bekijk opname</a>
<a href="{{ .Params.recording.url }}">Bekijk opname</a>
{{ end }}
{{ end }} {{ end }}
{{ end }} {{ end }}