6
0
Fork 0

Toevoegen optie om te linken naar een externe presentatie

This commit is contained in:
Michael Boelen 2023-06-17 22:43:55 +02:00
parent 8d3ba01f7f
commit ce224a7d37

View file

@ -14,13 +14,17 @@
</div>
{{ end }}
{{ if .Params.presentation.filename }}
{{ if isset .Params "presentation" }}
<h2>Presentatie</h2>
{{ if .Params.presentation.filename }}
{{ 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 }}
{{ else if .Params.presentation.link }}
<a href="{{ .Params.presentation.link }}" rel="nofollow">Presentatie (externe link)</a>
{{ end }}
{{ end }}
{{ if .Params.recording.url }}
<h2>Opname</h2>