forked from Frontend/Homepage
71 lines
1.7 KiB
HTML
71 lines
1.7 KiB
HTML
{{- $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_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" }}
|
|
🦠︎
|
|
{{- end }}
|
|
Das Event findet
|
|
{{- if eq $remote_reason "covid" }}
|
|
aufgrund der Corona-Pandemie
|
|
{{- end }}
|
|
virtuell statt:
|
|
<br>
|
|
<a href="{{ . }}" target="_blank">{{ . }}</a>
|
|
</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>
|