{{- 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 }}
    <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 }}
