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> <body>
<header> <header>
<h1>Comrades Library</h1> <h1>Comrades Library</h1>
{% include 'nav.html' %} {% include 'nav.html' %}
</header> </header>
<div class="page"> <div class="page">
{% block body %}{% endblock %} {% block body %}{% endblock %}

View file

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