1
0
Fork 0
website/templates/nav.html.j2

20 lines
700 B
Django/Jinja

{% set navigation_bar = [
('index.html', 'Reudnetz - Internet für Leipzigs Osten', 'Wilkommen'),
('was.html', 'Was genau verkauft Reudnetz', 'Was'),
('wie.html', 'Wie funktioniert das?', 'Wie'),
('wer.html', 'Wer ist Reudnetz', 'Wer'),
('warum.html', 'Warum gibt es Reudnetz', 'Warum'),
('kaputt.html', 'Wenns mal nicht mehr geht', 'Kaputt?')
] -%}
<div class="row nav">
<div class="fg12">
<ul>
{% for href, title, caption in navigation_bar %}
<li{% if name == href %} class="current"{% endif %}>
<a href="{{ href }}" title="{{ title }}">{{ caption }}</a>
</li>
{% endfor %}
</ul>
</div>
</div>