Add soviet union and fix nav indentation

Signed-off-by: HackerNCoder <hackerncoder@encryptionin.space>
This commit is contained in:
HackerNCoder 2023-06-11 17:03:29 +00:00
parent eb5bbc9efe
commit 236c783e6d
3 changed files with 16 additions and 12 deletions

View file

@ -0,0 +1,3 @@
_model: bib
---
title: Soviet Union

View file

@ -5,7 +5,7 @@
<body>
<header>
<h1>Comrades Library</h1>
{% include 'nav.html' %}
{% include 'nav.html' %}
</header>
<div class="page">
{% block body %}{% endblock %}

View file

@ -1,11 +1,12 @@
<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'],
] %}
<li{% if this.is_child_of(href) %} class="active"{% endif
%}><a href="{{ href|url }}">{{ title }}</a></li>
{% endfor %}
</ul>
</nav>
<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>