Improve header 6

This commit is contained in:
L3D 2019-02-16 16:05:53 +01:00
parent d22c039856
commit 8a56d5bee4
Signed by: l3d
GPG key ID: CD08445BFF4313D1
3 changed files with 39 additions and 17 deletions

View file

@ -110,3 +110,11 @@ hinweis_url: /mitmachen/
sections:
---
render_tourdaten: yes
---
icons_header_2: Worum geht es bei den Waffeln
---
icons_text_2:
Das C3WOC macht nicht einfach Waffeln, die man für Geld kaufen kann.
<b>Sondern es geht um viel mehr!</b>

View file

@ -86,6 +86,15 @@ label = Render Termine?
default = false
type = boolean
[fields.icons_header_2]
label = 4. Abschnitt: Überschrift (nach tourdaten)
type = string
[fields.icons_text_2]
label = 4. Abschnitt: Text (nach tourdaten)
type = markdown
[fields.icons_1_1]
label = 1. Icon: Font Awesome
type = string

View file

@ -65,34 +65,39 @@
if this.render_tourdaten %}
<div class="table-wrapper">
<div class="table-wrapper">
<table><thead>
<tr>
<th>Datum</th>
<th>Veranstaltung</th>
<th>Ort</th>
</tr>
</thead>
<tbody>{%
<table>
<thead>
<tr>
<th>Datum</th>
<th>Veranstaltung</th>
<th>Ort</th>
</tr>
</thead>
<tbody>{%
set pages = site.query('/').include_undiscoverable(true).all() %}{%
for page in pages %}{%
if page._model == 'waffeln' and page._path == '/waffeln.ics' %}{%
for blk in page.termine.blocks|sort(attribute='start', reverse = False) %}{%
if blk.start.strftime('%Y%m%d%H%M') > none|datetimeformat('yyyyMMddhhmm') %}
<tr>
<tr>
<th>{%
if blk.start.strftime('%d.%m') == blk.ende.strftime('%d.%m') %}{{ blk.start.strftime('%d.%m.%y %H') }} - {{ blk.ende.strftime('%H') }} Uhr{%
else %}{{ blk.start.strftime('%d.%m') }} - {{ blk.ende.strftime('%d.%m.%Y') }}{%
endif %}</th>
<th><a href="{{ blk.url }}" title="{{ blk.description|replace("|", " ") }}">{{ blk.event }}</a></th>
<th>{{ blk.ort }}</th>
</tr>{%
if blk.start.strftime('%d.%m') == blk.ende.strftime('%d.%m') %}{{ blk.start.strftime('%d.%m.%y %H') }} - {{ blk.ende.strftime('%H') }} Uhr{%
else %}{{ blk.start.strftime('%d.%m') }} - {{ blk.ende.strftime('%d.%m.%Y') }}{%
endif %}</th>
<th><a href="{{ blk.url }}" title="{{ blk.description|replace("|", " ") }}">{{ blk.event }}</a></th>
<th>{{ blk.ort }}</th>
</tr>{%
endif %}{%
endfor %}
</tbody>
</table>
</tbody>
</table><br/>
</div>{%
endif %}{%
endfor %}
<header class="major">
<h2>{{ this.icons_header_2 }}</h2>
{{ this.icons_text_2 }}
</header>
{% endif %}
<div class="box alt">
<div class="row uniform">