mirror of
https://github.com/netz39/www.netz39.de.git
synced 2025-01-18 20:10:12 +01:00
update event template to prepend place and time to page content
This commit is contained in:
parent
480d49b700
commit
cb68bfb739
1 changed files with 8 additions and 1 deletions
|
@ -8,7 +8,8 @@ layout: default
|
|||
<div class="feature-image-padding"></div>
|
||||
{% else %}
|
||||
<h1 id="{{ page.title | cgi_escape }}" class="title">{{ page.title }}</h1>
|
||||
{% 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 %}
|
||||
</div>
|
||||
</header>
|
||||
|
@ -17,6 +18,12 @@ layout: default
|
|||
{% if page.bootstrap %}
|
||||
<div class="bootstrap-iso">
|
||||
{% endif %}
|
||||
{% if page.event.start %}
|
||||
<p>
|
||||
<strong>Wann: {{ page.event.start | date: "%H:%M" }}{% if page.event.end %} - {{ page.event.end | date: "%H:%M" }}{% endif %} Uhr</strong><br />
|
||||
<strong>Wo: {{ page.event.location | default: "Netz39 e.V." }}</strong>
|
||||
</p>
|
||||
{% endif %}
|
||||
{{ content }}
|
||||
{% if page.bootstrap %}
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue