|
|
@ -1,19 +1,25 @@ |
|
|
|
{% set navigation_bar = [ |
|
|
|
('/', 'index', 'Home'), |
|
|
|
('/handbook', 'handbook', 'Handbook'), |
|
|
|
('/worldmap', 'worldmap', 'Maps'), |
|
|
|
('.header', 'generate', 'Generate'), |
|
|
|
('.header', 'other', 'Other'), |
|
|
|
{% set player_bar = [ |
|
|
|
('/npc/spells', 'spells', 'Spells'), |
|
|
|
('/quest/list', 'questlist', 'Quests'), |
|
|
|
('/wiki', 'wiki', 'Wiki'), |
|
|
|
('/lairs', lairs', 'Lairs'), |
|
|
|
('/worldmap', 'worldmap', 'Maps'), |
|
|
|
('https://reddit.com/r/PalismaACKS/wiki', 'redditwiki', 'Wiki'), |
|
|
|
] %} |
|
|
|
{% set generation_bar = [ |
|
|
|
('/npc/party', 'npcparty', 'NPC Party'), |
|
|
|
('/npc/single', 'npcsingle', 'Single NPC'), |
|
|
|
{% set judge_bar = [ |
|
|
|
('/lairs', 'lairs', 'Lairs'), |
|
|
|
('http://autarch.co/treasure', 'treasure', 'Treasure'), |
|
|
|
('/quest/list', 'questlist', 'Quests'), |
|
|
|
('/npc/party', 'npcparty', 'Generate Party'), |
|
|
|
('/npc/single', 'npcsingle', 'Generate NPC'), |
|
|
|
('/wiki', 'wiki', 'Wiki'), |
|
|
|
]%} |
|
|
|
|
|
|
|
{% set navigation_bar = [ |
|
|
|
('/', 'index', 'Home'), |
|
|
|
('/handbook', 'handbook', 'Handbook'), |
|
|
|
(player_bar, 'section', 'Player Resources'), |
|
|
|
(judge_bar, 'section', 'Judge Resources'), |
|
|
|
('https://reddit.com/r/PalismaACKS', 'subreddit', '/r/PalismaACKS'), |
|
|
|
] %} |
|
|
|
|
|
|
|
{% set active_page = active_page|default('index') %} |
|
|
|
|
|
|
|
<!doctype html> |
|
|
@ -33,7 +39,20 @@ |
|
|
|
<script src="https://cdn.jsdelivr.net/npm/uikit@3.2.4/dist/js/uikit.min.js"></script> |
|
|
|
<script src="https://cdn.jsdelivr.net/npm/uikit@3.2.4/dist/js/uikit-icons.min.js"></script> |
|
|
|
|
|
|
|
{% block head %} {% endblock %} |
|
|
|
<style> |
|
|
|
h1 strong { |
|
|
|
display: block; |
|
|
|
font-size: 50%; |
|
|
|
opacity: 0.65; |
|
|
|
} |
|
|
|
|
|
|
|
.uk-navbar-nav > li > a { |
|
|
|
font-size: 1em; |
|
|
|
text-transform: none; |
|
|
|
} |
|
|
|
</style> |
|
|
|
{% block head %} |
|
|
|
{% endblock %} |
|
|
|
</head> |
|
|
|
<body> |
|
|
|
<nav class="uk-navbar-container" uk-navbar> |
|
|
@ -44,26 +63,24 @@ |
|
|
|
<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 %}> |
|
|
|
{% 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> |
|
|
|
{% if id == 'section' %} |
|
|
|
<li> |
|
|
|
<a href="">{{ label|e }}</a> |
|
|
|
<div class="uk-navbar-dropdown"> |
|
|
|
<ul class="uk-nav uk-navbar-dropdown-nav"> |
|
|
|
{% for phref, pid, plabel in href %} |
|
|
|
<li> |
|
|
|
<a href="{{ phref|e }}">{{ plabel|e }}</a> |
|
|
|
</li> |
|
|
|
{% endfor %} |
|
|
|
</ul> |
|
|
|
</div> |
|
|
|
</li> |
|
|
|
{% else %} |
|
|
|
{% if href != '.header' %} |
|
|
|
<li {% if id == active_page %} class="uk-active" {% endif %}> |
|
|
|
<a href="{{ href|e }}">{{ label|e }}</a> |
|
|
|
{% endif %} |
|
|
|
</li> |
|
|
|
{% endif %} |
|
|
|
</li> |
|
|
|
{% endfor %} |
|
|
|
</ul> |
|
|
|
</div> |
|
|
@ -72,17 +89,14 @@ |
|
|
|
<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 %} |
|
|
|
{% if id == 'section' %} |
|
|
|
<li class="uk-nav-header uk-margin-large-top">{{ label|e }}</li> |
|
|
|
{% for phref, pid, plabel in href %} |
|
|
|
<li {% if pid == active_page %} class="uk-active" {% endif %}> |
|
|
|
<a href="{{ phref|e }}">{{ plabel|e }}</a> |
|
|
|
</li> |
|
|
|
{% endfor %} |
|
|
|
<li class="uk-margin-large-bottom"/> |
|
|
|
{% else %} |
|
|
|
<li {% if id == active_page %} class="uk-active" {% endif %}> |
|
|
|
<a href="{{ href|e }}">{{ label|e }}</a> |
|
|
@ -101,5 +115,8 @@ |
|
|
|
ACKS & related © <a href="http://www.autarch.co/">Autarch</a>. |
|
|
|
</div> |
|
|
|
</footer> |
|
|
|
|
|
|
|
{% block scripts %} |
|
|
|
{% endblock %} |
|
|
|
</body> |
|
|
|
</html> |