Fix Spaces

This commit is contained in:
Lilian Roller 2019-06-05 13:46:37 +02:00
parent e339d20abb
commit 6349cc2bf1
No known key found for this signature in database
GPG key ID: 5215C3441797AB2B

View file

@ -115,42 +115,48 @@
else %}{{ bag('navigation', 'de', 'home') }}{% endif %}</a></li>{% else %}{{ bag('navigation', 'de', 'home') }}{% endif %}</a></li>{%
for title, href in bag('nav-bar', "NavBar").items() %} for title, href in bag('nav-bar', "NavBar").items() %}
<li{% if this.is_child_of(href) %} class="active"{% endif <li{% if this.is_child_of(href) %} class="active"{% endif
%}><a href="{{ href|url }}">{% if bag('navigation', this.alt, title) %}{{ bag('navigation', this.alt, title) }}{% else %}{{ title }}{% endif %}</a> %}><a href="{{ href|string }}">{% if bag('navigation', this.alt, title) %}{{ bag('navigation', this.alt, title) }}{% else %}{{ title }}{% endif %}</a>
<ul> <ul>{%
{% if bag('nav-bar', 'list', title) %} if bag('nav-bar', 'list', title) %}{%
{% set root = site.get( bag('nav-bar', 'list', title), alt=this.alt) %}{% set root = site.get( bag('nav-bar', 'list', title), alt=this.alt) %}{%
for child in root.children recursive %}{% if loop.index <= 7 %} for child in root.children recursive %}{% if loop.index <= 7 %}
<li{% if this._path == child._path %} class="active"{% endif %}> <li{% if this._path == child._path %} class="active"{% endif %}>
<a href="{{ child|url }}"> <a href="{{ child|url }}">{{ child.shorttitle if child.shorttitle else child.title }}</a></li>{%
{{ child.shorttitle if child.shorttitle else child.title }} endif %}{% endfor %}{%
</a></li> endif %}
{% endif %}{% endfor %} {% if bag('nav-bar', title) %} {%
{% endif %} for nav_title, nav_url in bag('nav-bar', title).items()
{% if bag('nav-bar', title) %} %}<li><a href={{ nav_url if 'http' in nav_url else nav_url|url }}{%
{% for nav_title, nav_url in bag('nav-bar', title).items() %} if bag('nav-bar', 'button', nav_title)
<li><a href={{ nav_url if 'http' in nav_url else nav_url|url }} %}class="button special"{% endif
{% if bag('nav-bar', 'button', nav_title) %} %}>{{ bag('navigation', this.alt, nav_title)
class="button special"
{% endif %}>
{{ bag('navigation', this.alt, nav_title)
if bag('navigation', this.alt, nav_title) if bag('navigation', this.alt, nav_title)
else bag('navigation', 'de', nav_title) }} else bag('navigation', 'de', nav_title) }}</a></li>{%
</a></li> endfor %}{% endif %}
{% endfor %}
{% endif %}
</ul> </ul>
</li> </li>{% endfor %}
{% endfor %} <li class="last"><a href="/{%
<li class="last"><a href="/{% if bag('navigation', this.alt, 'default_path') %}{{ bag('navigation', this.alt, 'default_path') }}{% else %}..{% endif %}{{ this._path }}">{% if bag('navigation', this.alt, 'sprache') %}{{ bag('navigation', this.alt, 'sprache') }}{% else %}Sprache{% endif %}</a> if bag('navigation', this.alt, 'default_path')
%}{{ bag('navigation', this.alt, 'default_path') }}{%
else %}..{%
endif %}{{ this._path }}">{%
if bag('navigation', this.alt, 'sprache')
%}{{ bag('navigation', this.alt, 'sprache') }}{%
else %}Sprache{%
endif %}</a>
<ul class="last"> <ul class="last">
<li><a href="{{ this._path }}">{% <li><a href="{{ this._path }}">{%
if bag('navigation', this.alt, 'German') %}{{ bag('navigation', this.alt, 'German') }}{% if bag('navigation', this.alt, 'German')
else %}{{ bag('navigation', 'de', 'German') }}{% endif %}</a></li> %}{{ bag('navigation', this.alt, 'German') }}{%
else %}{{ bag('navigation', 'de', 'German') }}{%
endif %}</a></li>
<li><a href="/en{{ this._path }}">{% <li><a href="/en{{ this._path }}">{%
if bag('navigation', this.alt, 'Englisch') %}{{ bag('navigation', this.alt, 'Englisch') }}{% if bag('navigation', this.alt, 'Englisch')
%}{{ bag('navigation', this.alt, 'Englisch') }}{%
else %}{{ bag('navigation', 'de', 'Englisch') }}{% else %}{{ bag('navigation', 'de', 'Englisch') }}{%
endif %} <i>({% endif %} <i>({%
if bag('navigation', this.alt, 'falls') %}{{ bag('navigation', this.alt, 'falls') }}{% if bag('navigation', this.alt, 'falls')
%}{{ bag('navigation', this.alt, 'falls') }}{%
else %}{{ bag('navigation', 'de', 'falls') }}{% else %}{{ bag('navigation', 'de', 'falls') }}{%
endif %})</i></a><li> endif %})</i></a><li>
</ul> </ul>
@ -226,7 +232,7 @@ Wenn Sie unsere Kritik an der geplanten Urheberrechtsreform teilen, werden Sie a
['Mail', 'fas fa-envelope', "mailto:waffeln@c3woc.de"], ['Mail', 'fas fa-envelope', "mailto:waffeln@c3woc.de"],
['IRC Chat', 'fas fa-hashtag', "ircs://irc.hackint.org/#waffel"], ['IRC Chat', 'fas fa-hashtag', "ircs://irc.hackint.org/#waffel"],
['Webirc Chat', 'fab fa-slack', "https://webirc.hackint.org/#irc://irc.hackint.org/#waffel"], ['Webirc Chat', 'fab fa-slack', "https://webirc.hackint.org/#irc://irc.hackint.org/#waffel"],
['Rezept-Feed', 'fas fa-receipt', "https://c3woc.de/feed_rezepte.xml"], ['Rezept-Feed', 'fas fa-receipt', "https://c3woc.de.de/feed_rezepte.xml"],
['News', 'fas fa-rss', "https://c3woc.de/feed_blog.xml"], ['News', 'fas fa-rss', "https://c3woc.de/feed_blog.xml"],
['Tourdaten', 'far fa-calendar-plus', "https://c3woc.de/waffeln.ics"], ['Tourdaten', 'far fa-calendar-plus', "https://c3woc.de/waffeln.ics"],
['Tourdaten', 'fas fa-user-plus', "https://c3woc.de/mitmachen"] ['Tourdaten', 'fas fa-user-plus', "https://c3woc.de/mitmachen"]