This repository has been archived on 2024-05-04. You can view files and clone it, but cannot push or open issues or pull requests.
Homepage/layouts/shortcodes/event_weekly.html

69 lines
1.4 KiB
HTML

{{- $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" }}
<p></p>
<div class="purge-g">
<div class="pure-u-1-24">
</div>
<div class="pure-u-1-22">
<table class="pure-table pure-table-horizontal centered">
<thead>
<tr>
<th>
Wochentag
</th>
<th>
von
</th>
<th>
bis
</th>
</tr>
</thead>
<tbody>
<tr>
<td>
Jeden
{{ with $interval }}
{{ . }}
{{ $weekday }}
im Monat
{{ else }}
{{ $weekday }}
{{ end }}
{{ with $annotation }}
<br>
<small>
({{ . }})
</small>
{{ end }}
</td>
<td>
{{ $begin }}
Uhr
</td>
<td>
{{ with $finish }}
{{ . }}
Uhr
{{ else }}
open end
{{ end }}
</td>
</tr>
</tbody>
</table>
</div>
<div class="pure-u-1-24">
</div>
</div>
<p></p>