{{- $intro := $.Page.Param "event.weekly.intro" }}
{{- if not $intro }}
{{- errorf "missing value for 'event.weekly.intro': %s" .Position }}
{{- end }}
{{- $weekday := $.Page.Param "event.weekly.weekday" }}
{{- if not $weekday }}
{{- errorf "missing value for 'event.weekly.weekday': %s" .Position }}
{{- end }}
{{- $begin := $.Page.Param "event.weekly.begin" }}
{{- if not $begin }}
{{- errorf "missing value for 'event.weekly.begin': %s" .Position }}
{{- end }}
{{- $finish := $.Page.Param "event.weekly.finish" }}
{{- $interval := $.Page.Param "event.weekly.interval" }}
{{- $annotation := $.Page.Param "event.weekly.annotation" }}
{{- $link := $.Page.Param "event.weekly.link" }}
{{- $remote_url := $.Page.Param "event.weekly.remote_url" }}
{{- $remote_chat := $.Page.Param "event.weekly.remote_chat" }}
{{- $matrix_channel := $.Page.Param "event.weekly.matrix_channel" }}
<p>
  {{ $intro }}
</p>
{{- with $remote_url }}
<div class="pure-u-1-8"></div>
<div class="pure-u-3-4 border-dashed pad-both">
  Das Event findet virtuell statt
  <br>
  — <a href="{{ . }}" target="_blank">{{ . }}</a>
  {{- with $remote_chat }}
    <br>
    Der genaue Meetingraum wird im Chat kurzfristig bekannt gegeben.
    (Deine Stimme zählt, Dein Video aber nicht - Teilnahme per WebCam ist
    nicht erforderlich. Das Event wird zu keinem Zeitpunkt aufgezeichnet.)
  {{- end }}
</div>
<div class="pure-u-1-8"></div>
{{- end }}
<dl>
  <dt>Termin</dt>
  <dd>
    Jeden
    {{- with $interval }}
      {{ . }} {{ $weekday }} im Monat
    {{- else }}
      {{ $weekday }}
    {{- end }}
    {{- with $begin }}
    von {{ . }} bis
    {{- with $finish }}
    {{ . }}
    {{ end }}
    {{- end }}
  </dd>
  {{- with $annotation }}
  <dd>
    <small>({{ . }})</small>
  </dd>
  {{- end }}
  {{- with $matrix_channel }}
  <dt>Matrix Channel</dt>
  <dd>
      <a href="https://matrix.to/#/{{ . }}">{{ . }}</a>
  </dd>
  {{- end }}
  {{- with $link }}
  <dt>Website</dt>
  <dd>
      <a href="{{ . }}">{{ . }}</a>
  </dd>
  {{- end }}
</dl>
<p>
</p>
