From cb68bfb7392d5566c4ae16ee6f73d01cd91809ca Mon Sep 17 00:00:00 2001 From: teuserer Date: Thu, 14 Mar 2024 23:06:18 +0100 Subject: [PATCH] update event template to prepend place and time to page content --- _layouts/event.liquid | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/_layouts/event.liquid b/_layouts/event.liquid index 4415403..a250d96 100644 --- a/_layouts/event.liquid +++ b/_layouts/event.liquid @@ -8,7 +8,8 @@ layout: default
{% else %}

{{ page.title }}

- {% include blog/post_info.liquid author=page.author date=page.event_date %} + {% assign start_date = page.event.start | default: page.event_date %} + {% include blog/post_info.liquid author=page.author date=start_date %} {% endif %} @@ -17,6 +18,12 @@ layout: default {% if page.bootstrap %}
{% endif %} + {% if page.event.start %} +

+ Wann: {{ page.event.start | date: "%H:%M" }}{% if page.event.end %} - {{ page.event.end | date: "%H:%M" }}{% endif %} Uhr
+ Wo: {{ page.event.location | default: "Netz39 e.V." }} +

+ {% endif %} {{ content }} {% if page.bootstrap %}