comlib/templates/nav.html
HackerNCoder 236c783e6d Add soviet union and fix nav indentation
Signed-off-by: HackerNCoder <hackerncoder@encryptionin.space>
2023-06-11 17:03:29 +00:00

13 lines
435 B
HTML

<nav>
<ul class="nav navbar-nav">
<li{% if this._path == '/' %} class="active"{% endif%}><a href="{{ '/'|url }}">Home</a></li>
{% for href, title in [
['/korea', 'Korea'],
['/soviet-union', 'Soviet Union'],
] %}
<li{% if this.is_child_of(href) %} class="active"{% endif
%}><a href="{{ href|url }}">{{ title }}</a></li>
{% endfor %}
</ul>
</nav>