Homepage/layouts/shortcodes/event_weekly_display.html

46 lines
1.3 KiB
HTML

{{- range $weekday := (slice "Montag" "Dienstag" "Mittwoch" "Donnerstag" "Freitag") }}
<h3>{{ $weekday }}</h3>
<ul>
{{- range $page := $.Site.RegularPages.ByTitle }}
{{ if (eq $weekday ($page.Param "event.weekly.weekday")) }}
<li>
<p>
<a href="{{ $page.Permalink }}">{{ $page.Title }}</a>
{{- with $page.Param "event.weekly.link" }}
<a href="{{ . }}">Webseite</a>
{{- end }}
{{- with $page.Param "event.weekly.remote_url" }}
<a href="{{ . }}">Remote Treffen</a>
{{- end }}
{{- with $page.Param "event.weekly.matrix_channel" }}
<a href="https://matrix.to/#/{{ . }}">Matrix Channel</a>
{{- end }}
{{- with $page.Param "event.weekly.tel" }}
<a href="tel:+4922159619{{ . }}">+49 221 - 59 61 9 {{ . }}</a>
{{- end }}
<br>
<small>
{{- with $page.Param "event.weekly.interval" }}
Jeden {{ . }} {{ $weekday }} im Monat —
{{- end }}
von {{ $page.Param "event.weekly.begin" }} Uhr
bis
{{- with $page.Param "event.weekly.finish" }}
{{ . }} Uhr
{{- else }}
open end
{{- end }}
{{- with $page.Param "event.weekly.annotation" }}
— {{ . }}
{{- end }}
</small>
</p>
<p>
{{ $page.Param "event.weekly.intro" }}
</p>
</li>
{{- end }}
{{- end }}
</ul>
{{- end }}