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"?>{% <?xml version="1.0" encoding="utf-8"?>{%
set baseurl = "https://toolbox-bodensee.de/" %}{% set baseurl = "https://c3woc.de/" %}{%
set search = "blog" %} set search = "blog" %}
<feed xmlns="http://www.w3.org/2005/Atom"> <feed xmlns="http://www.w3.org/2005/Atom">
<title type="text">{% <title type="text">{%

View file

@ -62,7 +62,8 @@
<h2>{{ this.icons_header }}</h2> <h2>{{ this.icons_header }}</h2>
{{ this.icons_text }} {{ this.icons_text }}
</header>{% </header>{%
if this.render_tourdaten %}<div class="table-wrapper"> if this.render_tourdaten %}
<div class="table-wrapper">
<div class="table-wrapper"> <div class="table-wrapper">
<thead> <thead>
<tr> <tr>
@ -72,13 +73,18 @@
</tr> </tr>
</thead> </thead>
<tbody>{% <tbody>{%
for x in range(0, 999) %}{% set pages = site.query('/').include_undiscoverable(true).all() %}{%
if bag('termine', 'termine', 'start[' + x|string + ']') is not none %} for page in pages %}{%
if page._model == 'waffeln' and page._path == '/waffeln.ics' %}{%
for blk in page.termine.blocks %}
<tr> <tr>
<td>{% set start = bag('termine', 'termine', 'start[' + x|string + ']') %}{{ start }} <th>{{ blk.start.strftime('%d.%m') }} - {{ blk.ende.strftime('%d.%m.%Y') }}
{% endif %}{% <th>{{ blk.event }}</th>
endfor %}{% <th></th>
endif %} {% endfor %}{%
endif %}{%
endfor %}
{% endif %}
<div class="box alt"> <div class="box alt">
<div class="row uniform"> <div class="row uniform">
<section class="4u 6u(medium) 12u$(xsmall)"> <section class="4u 6u(medium) 12u$(xsmall)">