7
0
Fork 0
This repository has been archived on 2024-10-15. You can view files and clone it, but cannot push or open issues or pull requests.
fediversity_website_archive/themes/nluug/layouts/evenementen/event-talk.html

38 lines
1.2 KiB
HTML
Raw Permalink Normal View History

2023-05-22 11:46:50 +02:00
{{ define "main" }}
<div>{{ .Content }}</div>
{{ if .Params.speakers }}
<div>
{{ $count := .Params.speakers | len }}
<h2>{{ i18n "speaker" (dict "Count" $count) | strings.FirstUpper }}</h2>
2023-11-02 10:05:14 +01:00
<section>
{{ .Scratch.Set "related_speakers" .Params.speakers }}
{{ partial "show-speakers-small.html" . }}
</section>
</div>
{{ end }}
{{ 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" "alt" "PDF-icoon") }}
<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>
2023-05-22 11:46:50 +02:00
{{ if .Params.recording.platform }}
{{ if eq .Params.recording.platform "youtube" }}{{ partial "show-svg-icon.html" (dict "context" . "icon" "youtube" "alt" "YouTube-icoon") }}{{ end }}
2023-05-22 11:46:50 +02:00
{{ end }}
<a href="{{ .Params.recording.url }}">Bekijk opname</a>
2023-05-22 11:46:50 +02:00
{{ end }}
2023-05-22 11:46:50 +02:00
{{ end }}