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,12 +14,16 @@
</div>
{{ end }}
{{ if .Params.presentation.filename }}
{{ if isset .Params "presentation" }}
<h2>Presentatie</h2>
{{ if findRE `.pdf$` .Params.presentation.filename 1 }}
{{ partial "show-svg-icon.html" (dict "context" . "icon" "file-pdf") }}
{{ if .Params.presentation.filename }}
{{ if findRE `.pdf$` .Params.presentation.filename 1 }}
{{ partial "show-svg-icon.html" (dict "context" . "icon" "file-pdf") }}
<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 }}
<a href="/bestanden/presentaties/{{ .Params.presentation.filename }}">Presentatie</a>
{{ end }}
{{ if .Params.recording.url }}