continue workng on dates

This commit is contained in:
L3D 2019-02-15 22:39:32 +01:00
parent 70c86f0cbd
commit 27adecceff
Signed by: l3d
GPG key ID: CD08445BFF4313D1
2 changed files with 15 additions and 9 deletions

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>{%
set baseurl = "https://toolbox-bodensee.de/" %}{%
set baseurl = "https://c3woc.de/" %}{%
set search = "blog" %}
<feed xmlns="http://www.w3.org/2005/Atom">
<title type="text">{%

View file

@ -62,7 +62,8 @@
<h2>{{ this.icons_header }}</h2>
{{ this.icons_text }}
</header>{%
if this.render_tourdaten %}<div class="table-wrapper">
if this.render_tourdaten %}
<div class="table-wrapper">
<div class="table-wrapper">
<thead>
<tr>
@ -71,14 +72,19 @@
<th>Ort</th>
</tr>
</thead>
<tbody>{%
for x in range(0, 999) %}{%
if bag('termine', 'termine', 'start[' + x|string + ']') is not none %}
<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 %}
<tr>
<td>{% set start = bag('termine', 'termine', 'start[' + x|string + ']') %}{{ start }}
{% endif %}{%
endfor %}{%
endif %}
<th>{{ blk.start.strftime('%d.%m') }} - {{ blk.ende.strftime('%d.%m.%Y') }}
<th>{{ blk.event }}</th>
<th></th>
{% endfor %}{%
endif %}{%
endfor %}
{% endif %}
<div class="box alt">
<div class="row uniform">
<section class="4u 6u(medium) 12u$(xsmall)">