Add Abo button

This commit is contained in:
Lilian Roller 2019-07-02 11:37:52 +02:00
parent cecd0757bd
commit 829c23d497
No known key found for this signature in database
GPG key ID: 5215C3441797AB2B
2 changed files with 40 additions and 24 deletions

View file

@ -91,7 +91,9 @@ icons_1_url: https://c3coc.de
--- ---
icons_3_url: /rezepte/ icons_3_url: /rezepte/
--- ---
hinweis: Wenn du Lust hast, dann hinweis:
Wenn du Lust hast, dann
--- ---
hinweis_txt: mach mit! hinweis_txt: mach mit!
--- ---

View file

@ -1,6 +1,6 @@
{% extends "layout.html" %} {%- extends "layout.html" -%}
{% block title %}{{ this.title }}{% endblock %} {%- block title -%}{{ this.title }}{%- endblock -%}
{% block body %} {%- block body %}
<!-- Banner --> <!-- Banner -->
<section id="banner"> <section id="banner">
@ -8,10 +8,20 @@
<header> <header>
<h2>{{ this.title }}</h2> <h2>{{ this.title }}</h2>
<p>{{ this.slogan }}</p> <p>{{ this.slogan }}</p>
<p>{{ this.hinweis }} {% if this.hinweis_txt %}<a href="{% if this.hinweis_url %}{{this.hinweis_url }}{% else %}#four{% endif %}">{{ this.hinweis_txt }}</a>{% endif %}</p> <p>{{ this.hinweis }}{{ ' ' }}
{%- if this.hinweis_txt -%}
<a href="
{%- if this.hinweis_url -%}
{{this.hinweis_url }}
{%- else -%}
#four
{%- endif -%}
">{{ this.hinweis_txt }}</a>
{%- endif -%}
</p>
</header> </header>
<span class="image"> <span class="image">
<img src="{{ '/images/logo.svg'|url }}" alt="" /> <img src="{{ '/images/logo.svg'|asseturl }}" alt="" />
</span> </span>
</div> </div>
<a href="#scroll-1" class="goto-next scrolly">Next</a> <a href="#scroll-1" class="goto-next scrolly">Next</a>
@ -61,8 +71,9 @@
<header class="major"> <header class="major">
<h2>{{ this.icons_header }}</h2> <h2>{{ this.icons_header }}</h2>
{{ this.icons_text }} {{ this.icons_text }}
</header>{% <a class="button special" href="/waffeln.ics">Kalender Abonieren</a><br/>
if this.render_tourdaten %} </header>
{%- if this.render_tourdaten %}
<div class="table-wrapper"> <div class="table-wrapper">
<div class="table-wrapper"> <div class="table-wrapper">
<table> <table>
@ -73,27 +84,30 @@
<th>Ort</th> <th>Ort</th>
</tr> </tr>
</thead> </thead>
<tbody>{% <tbody>
set pages = site.query('/').include_undiscoverable(true).all() %}{% {%- set pages = site.query('/').include_undiscoverable(true).all() -%}
for page in pages %}{% {%- for page in pages -%}
if page._model == 'waffeln' and page._path == '/waffeln.ics' %}{% {%- if page._model == 'waffeln' and page._path == '/waffeln.ics' -%}
for blk in page.termine.blocks|sort(attribute='start', reverse = False) %}{% {%- for blk in page.termine.blocks|sort(attribute='start', reverse = False) -%}
if blk.start.strftime('%Y%m%d%H%M') > none|datetimeformat('yyyyMMddhhmm') %} {%- if blk.start.strftime('%Y%m%d%H%M') > none|datetimeformat('yyyyMMddhhmm') -%}
<tr> <tr>
<th>{% <th>
if blk.start.strftime('%d.%m') == blk.ende.strftime('%d.%m') %}{{ blk.start.strftime('%d.%m.%y %H') }} - {{ blk.ende.strftime('%H') }} Uhr{% {%- if blk.start.strftime('%d.%m') == blk.ende.strftime('%d.%m') -%}
else %}{{ blk.start.strftime('%d.%m') }} - {{ blk.ende.strftime('%d.%m.%Y') }}{% {{ blk.start.strftime('%d.%m.%y %H') }} - {{ blk.ende.strftime('%H') }} Uhr
endif %}</th> {%- 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><a href="{{ blk.url }}" title="{{ blk.description|replace("|", " ") }}">{{ blk.event }}</a></th>
<th>{{ blk.ort }}</th> <th>{{ blk.ort }}</th>
</tr>{% </tr>
endif %}{% {%- endif -%}
endfor %} {%- endfor -%}
</tbody> </tbody>
</table><br/> </table><br/>
</div>{% </div>
endif %}{% {%- endif -%}
endfor %} {%- endfor %}
<header class="major"> <header class="major">
<h2>{{ this.icons_header_2 }}</h2> <h2>{{ this.icons_header_2 }}</h2>
{{ this.icons_text_2 }} {{ this.icons_text_2 }}