Fill navigation from config

master
Emil Miler 2 years ago
parent 7d5f8e7156
commit 9c89607c4f

@ -13,4 +13,8 @@ build_search_index = false
highlight_code = true
[extra]
# Put all your custom variables here
nav_items = [
{name="Index", path="/"},
{name="Projekty", path="/projekty/"},
{name="Kontakty", path="/kontakty/"},
]

@ -11,9 +11,9 @@
<a class="img" href="/"></a>
</header>
<nav>
<a href="">Index</a>
<a href="">Projekty</a>
<a href="">Kontaky</a>
{% for item in config.extra.nav_items %}
<a href="{{ item.path }}">{{ item.name }}</a>
{% endfor %}
</nav>
</body>
<main>

Loading…
Cancel
Save