|
@ -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'), |
|
|
('/npc/spells', 'spells', 'Spells'), |
|
|
|
|
|
('/worldmap', 'worldmap', 'Maps'), |
|
|
|
|
|
('https://reddit.com/r/PalismaACKS/wiki', 'redditwiki', 'Wiki'), |
|
|
|
|
|
] %} |
|
|
|
|
|
{% set judge_bar = [ |
|
|
|
|
|
('/lairs', 'lairs', 'Lairs'), |
|
|
|
|
|
('http://autarch.co/treasure', 'treasure', 'Treasure'), |
|
|
('/quest/list', 'questlist', 'Quests'), |
|
|
('/quest/list', 'questlist', 'Quests'), |
|
|
|
|
|
('/npc/party', 'npcparty', 'Generate Party'), |
|
|
|
|
|
('/npc/single', 'npcsingle', 'Generate NPC'), |
|
|
('/wiki', 'wiki', 'Wiki'), |
|
|
('/wiki', 'wiki', 'Wiki'), |
|
|
('/lairs', lairs', 'Lairs'), |
|
|
|
|
|
]%} |
|
|
]%} |
|
|
{% set generation_bar = [ |
|
|
|
|
|
('/npc/party', 'npcparty', 'NPC Party'), |
|
|
|
|
|
('/npc/single', 'npcsingle', 'Single NPC'), |
|
|
|
|
|
('http://autarch.co/treasure', 'treasure', 'Treasure'), |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{% 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') %} |
|
|
{% set active_page = active_page|default('index') %} |
|
|
|
|
|
|
|
|
<!doctype html> |
|
|
<!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.min.js"></script> |
|
|
<script src="https://cdn.jsdelivr.net/npm/uikit@3.2.4/dist/js/uikit-icons.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> |
|
|
</head> |
|
|
<body> |
|
|
<body> |
|
|
<nav class="uk-navbar-container" uk-navbar> |
|
|
<nav class="uk-navbar-container" uk-navbar> |
|
@ -44,26 +63,24 @@ |
|
|
<div class="uk-navbar-center uk-visible@m"> |
|
|
<div class="uk-navbar-center uk-visible@m"> |
|
|
<ul class="uk-navbar-nav"> |
|
|
<ul class="uk-navbar-nav"> |
|
|
{% for href, id, label in navigation_bar %} |
|
|
{% for href, id, label in navigation_bar %} |
|
|
<li {% if id == active_page %} class="uk-active" {% endif %}> |
|
|
|
|
|
{% if id == 'generate' %} |
|
|
|
|
|
|
|
|
{% if id == 'section' %} |
|
|
|
|
|
<li> |
|
|
<a href="">{{ label|e }}</a> |
|
|
<a href="">{{ label|e }}</a> |
|
|
<div class="uk-navbar-dropdown"> |
|
|
<div class="uk-navbar-dropdown"> |
|
|
<ul class="uk-nav uk-navbar-dropdown-nav"> |
|
|
<ul class="uk-nav uk-navbar-dropdown-nav"> |
|
|
{% for ghref, gid, glabel in generation_bar %} |
|
|
|
|
|
|
|
|
{% for phref, pid, plabel in href %} |
|
|
<li> |
|
|
<li> |
|
|
<a href="{{ ghref | e }}" {% if gid == 'treasure' %}target="_blank"{% endif %}> |
|
|
|
|
|
{{ glabel|e }} |
|
|
|
|
|
</a> |
|
|
|
|
|
|
|
|
<a href="{{ phref|e }}">{{ plabel|e }}</a> |
|
|
</li> |
|
|
</li> |
|
|
{% endfor %} |
|
|
{% endfor %} |
|
|
</ul> |
|
|
</ul> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
</li> |
|
|
{% else %} |
|
|
{% else %} |
|
|
{% if href != '.header' %} |
|
|
|
|
|
|
|
|
<li {% if id == active_page %} class="uk-active" {% endif %}> |
|
|
<a href="{{ href|e }}">{{ label|e }}</a> |
|
|
<a href="{{ href|e }}">{{ label|e }}</a> |
|
|
{% endif %} |
|
|
|
|
|
{% endif %} |
|
|
|
|
|
</li> |
|
|
</li> |
|
|
|
|
|
{% endif %} |
|
|
{% endfor %} |
|
|
{% endfor %} |
|
|
</ul> |
|
|
</ul> |
|
|
</div> |
|
|
</div> |
|
@ -72,17 +89,14 @@ |
|
|
<div class="uk-offcanvas-bar uk-flex uk-flex-column"> |
|
|
<div class="uk-offcanvas-bar uk-flex uk-flex-column"> |
|
|
<ul class="uk-nav uk-nav-primary uk-nav-center uk-margin-auto-vertical"> |
|
|
<ul class="uk-nav uk-nav-primary uk-nav-center uk-margin-auto-vertical"> |
|
|
{% for href, id, label in navigation_bar %} |
|
|
{% 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> |
|
|
|
|
|
|
|
|
{% 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> |
|
|
</li> |
|
|
{% endfor %} |
|
|
{% endfor %} |
|
|
{% endif %} |
|
|
|
|
|
|
|
|
<li class="uk-margin-large-bottom"/> |
|
|
{% else %} |
|
|
{% else %} |
|
|
<li {% if id == active_page %} class="uk-active" {% endif %}> |
|
|
<li {% if id == active_page %} class="uk-active" {% endif %}> |
|
|
<a href="{{ href|e }}">{{ label|e }}</a> |
|
|
<a href="{{ href|e }}">{{ label|e }}</a> |
|
@ -101,5 +115,8 @@ |
|
|
ACKS & related © <a href="http://www.autarch.co/">Autarch</a>. |
|
|
ACKS & related © <a href="http://www.autarch.co/">Autarch</a>. |
|
|
</div> |
|
|
</div> |
|
|
</footer> |
|
|
</footer> |
|
|
|
|
|
|
|
|
|
|
|
{% block scripts %} |
|
|
|
|
|
{% endblock %} |
|
|
</body> |
|
|
</body> |
|
|
</html> |
|
|
</html> |