|
|
@ -1,7 +1,7 @@ |
|
|
|
{% set navigation_bar = [ |
|
|
|
('/', 'index', 'Home'), |
|
|
|
('/handbook', 'handbook', 'Handbook'), |
|
|
|
('/worldmap', 'worldmap', 'World Map'), |
|
|
|
('/worldmap', 'worldmap', 'Maps'), |
|
|
|
('.header', 'generate', 'Generate'), |
|
|
|
('.header', 'other', 'Other'), |
|
|
|
('/npc/spells', 'spells', 'Spells'), |
|
|
@ -42,56 +42,62 @@ |
|
|
|
<div class="uk-navbar-center uk-visible@m"> |
|
|
|
<ul class="uk-navbar-nav"> |
|
|
|
{% for href, id, label in navigation_bar %} |
|
|
|
<li {% if id == active_page %} class="uk-active" {% endif %}> |
|
|
|
<li {% if id == active_page %} class="uk-active" {% endif %}> |
|
|
|
{% if id == 'generate' %} |
|
|
|
<a href="">{{ label |e }}</a> |
|
|
|
<div class="uk-navbar-dropdown"> |
|
|
|
<ul class="uk-nav uk-navbar-dropdown-nav"> |
|
|
|
{% for ghref, gid, glabel in generation_bar %} |
|
|
|
<li> |
|
|
|
<a href="{{ ghref | e }}" {% if gid == 'treasure' %}target="_blank"{% endif %}> |
|
|
|
{{ glabel|e }} |
|
|
|
</a> |
|
|
|
</li> |
|
|
|
{% endfor %} |
|
|
|
</ul> |
|
|
|
</div> |
|
|
|
<a href="">{{ label |e }}</a> |
|
|
|
<div class="uk-navbar-dropdown"> |
|
|
|
<ul class="uk-nav uk-navbar-dropdown-nav"> |
|
|
|
{% for ghref, gid, glabel in generation_bar %} |
|
|
|
<li> |
|
|
|
<a href="{{ ghref | e }}" {% if gid == 'treasure' %}target="_blank"{% endif %}> |
|
|
|
{{ glabel|e }} |
|
|
|
</a> |
|
|
|
</li> |
|
|
|
{% endfor %} |
|
|
|
</ul> |
|
|
|
</div> |
|
|
|
{% else %} |
|
|
|
{% if href != '.header' %} |
|
|
|
<a href="{{ href|e }}">{{ label|e }}</a> |
|
|
|
<a href="{{ href|e }}">{{ label|e }}</a> |
|
|
|
{% endif %} |
|
|
|
{% endif %} |
|
|
|
</li> |
|
|
|
</li> |
|
|
|
{% endfor %} |
|
|
|
</ul> |
|
|
|
</div> |
|
|
|
</nav> |
|
|
|
<div id="offcanvas-nav" uk-offcanvas="overlay: true"> |
|
|
|
<div class="uk-offcanvas-bar uk-flex uk-flex-column"> |
|
|
|
<ul class="uk-nav uk-nav-primary uk-nav-center uk-margin-auto-vertical"> |
|
|
|
{% for href, id, label in navigation_bar %} |
|
|
|
{% if href == '.header' %} |
|
|
|
<li class="uk-nav-header">{{ label|e }}</li> |
|
|
|
{% if id == 'generate' %} |
|
|
|
{% for ghref, gid, glabel in generation_bar %} |
|
|
|
<div id="offcanvas-nav" uk-offcanvas="overlay: true"> |
|
|
|
<div class="uk-offcanvas-bar uk-flex uk-flex-column"> |
|
|
|
<ul class="uk-nav uk-nav-primary uk-nav-center uk-margin-auto-vertical"> |
|
|
|
{% for href, id, label in navigation_bar %} |
|
|
|
{% if href == '.header' %} |
|
|
|
<li class="uk-nav-header">{{ label|e }}</li> |
|
|
|
{% if id == 'generate' %} |
|
|
|
{% for ghref, gid, glabel in generation_bar %} |
|
|
|
<li {% if gid == active_page %} class="uk-active" {% endif %}> |
|
|
|
<a href="{{ ghref | e }}" {% if gid == 'treasure' %}target="_blank"{% endif %}> |
|
|
|
{{ glabel|e }} |
|
|
|
</a> |
|
|
|
</li> |
|
|
|
{% endfor %} |
|
|
|
{% endif %} |
|
|
|
{% else %} |
|
|
|
{% endfor %} |
|
|
|
{% endif %} |
|
|
|
{% else %} |
|
|
|
<li {% if id == active_page %} class="uk-active" {% endif %}> |
|
|
|
<a href="{{ href|e }}">{{ label|e }}</a> |
|
|
|
<a href="{{ href|e }}">{{ label|e }}</a> |
|
|
|
</li> |
|
|
|
{% endif %} |
|
|
|
{% endfor %} |
|
|
|
</ul> |
|
|
|
{% endif %} |
|
|
|
{% endfor %} |
|
|
|
</ul> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="uk-container"> |
|
|
|
{% block content %}{% endblock %} |
|
|
|
<div class="uk-container uk-margin-medium-top"> |
|
|
|
{% block content %}{% endblock %} |
|
|
|
</div> |
|
|
|
<footer class="uk-flex uk-flex-top uk-flex-center uk-margin-small uk-margin-medium-top"> |
|
|
|
<div class="uk-text-center uk-text-small"> |
|
|
|
Made by <a href="https://binaryatrocity.name">binaryatrocity</a>. |
|
|
|
ACKS & related © <a href="http://www.autarch.co/">Autarch</a>. |
|
|
|
</div> |
|
|
|
</footer> |
|
|
|
</body> |
|
|
|
</html> |