{#- HTML Calender Renderer for Startpage -#} {%- set pages = site.query('/').include_undiscoverable(true).all() -%} {%- set counter = ['1'] -%} {%- for page in pages -%} {%- if page._path == this.calendar_name -%} {%- for blk in page.dates.blocks|sort(attribute='ende', reverse = False) -%} {%- if blk.start.strftime('%Y%m%d%H%M') > none|datetimeformat('yyyyMMddhhmm') -%} {%- if counter == ['1'] -%} {%- endif -%} {%- if counter.append('X') -%} {#- Counter zum zaehlen ob es mehr wie 1 Temrin gibt -#} {%- endif -%} {{- '\n ' -}} {{- '\n ' -}} {%- if blk.confirmed == 'true' -%} {%- elif blk.confirmed == 'canceled' -%} {% else %} {% endif %} {{- '\n ' -}} {%- endif -%} {%- endfor -%} {%- endif -%} {%- if counter|length < 1 and loop.index == 1 %} {{- '\n ' -}}

Leider derzeit noch keine neuen Termine geplant!

{%- endif -%} {%- endfor %} {%- if counter|length > 1 -%} {{- '\n ' -}} {{- '\n ' -}}
Datum Veranstaltung Ort
{%- if blk.confirmed == 'true' -%} {%- elif blk.confirmed == 'canceled' -%} {% else %} {% endif %} {%- if blk.start.strftime('%d.%m') == blk.ende.strftime('%d.%m') -%} {{- '\n ' -}} {{ blk.start.strftime('%d.%m.%y %H') }} - {{ blk.ende.strftime('%H') }} Uhr {%- else -%} {{- '\n ' -}} {{ blk.start.strftime('%d.%m') }} - {{ blk.ende.strftime('%d.%m.%Y') }} {%- endif -%} {{- '\n ' -}} {%- if blk.confirmed == 'true' -%} {%- elif blk.confirmed == 'canceled' -%} {% else %} {% endif %} {{- '\n ' -}} {{- blk.event -}} {%- if blk.confirmed == 'true' -%} {%- elif blk.confirmed == 'canceled' -%} {% else %} {% endif %} {{- '\n ' -}} {{ blk.ort }}
{{- '\n ' -}}
{%- endif -%}