Toevoegen optie om presentatie te linken

This commit is contained in:
Michael Boelen 2023-06-05 20:09:55 +02:00
parent 22e57ae939
commit 6e7d948ea9

View file

@ -2,9 +2,17 @@
{{ with .Title }}<h1>{{ . }}</h1>{{ end }} {{ with .Title }}<h1>{{ . }}</h1>{{ end }}
<div>{{ .Content }}</div> <div>{{ .Content }}</div>
{{ if .Params.presentation }}
<h2>Presentatie</h2>
{{ if .Params.presentation.filename }}
<a href="/bestanden/presentaties/{{ .Params.presentation.filename }}">Presentatie</a>
{{ end }}
{{ end }}
{{ if .Params.recording }} {{ if .Params.recording }}
<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" "iconsize" "64") }}{{ end }} {{ if eq .Params.recording.platform "youtube" }}{{ partial "show-svg-icon.html" (dict "context" . "icon" "youtube") }}{{ end }}
{{ end }} {{ end }}
{{ if .Params.recording.url }} {{ if .Params.recording.url }}
<a href="{{ .Params.recording.url }}">Bekijk opname</a> <a href="{{ .Params.recording.url }}">Bekijk opname</a>