{{- $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" }}
{{- $remote_reason := $.Page.Param "event.weekly.remote_reason" }}
<p>
  {{ $intro }}
</p>
{{- with $remote_url }}
<div class="pure-u-1-8"></div>
<div class="pure-u-3-4 border-dashed pad-both">
  {{- if eq $remote_reason "covid" }}
    &#x1f9a0;&#xfe0e;
  {{- end }}
  Das Event findet
  {{- if eq $remote_reason "covid" }}
    aufgrund der Corona-Pandemie
  {{- end }}
  virtuell statt
  <br>
  — <a href="{{ . }}" target="_blank">{{ . }}</a>
  {{- with $remote_chat }}
    <br>
    Der genaue Meetingraum wird im Chat kurzfristig bekanntgegeben.
    (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 }}
  </dd>
  {{- with $annotation }}
  <dd>
    <small>({{ . }})</small>
  </dd>
  {{- end }}
  <dt>von</dt>
  <dd>
    {{ $begin }} Uhr
  </dd>
  <dt>bis</dt>
  <dd>
    {{- with $finish }}
      {{ . }} Uhr
    {{- else }}
      open end
    {{- end }}
  </dd>
</dl>
<p>
{{- with $link }}
  <a href="{{ . }}">Website</a>
{{- end }}
</p>
