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 highlight_code = true
[extra] [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> <a class="img" href="/"></a>
</header> </header>
<nav> <nav>
<a href="">Index</a> {% for item in config.extra.nav_items %}
<a href="">Projekty</a> <a href="{{ item.path }}">{{ item.name }}</a>
<a href="">Kontaky</a> {% endfor %}
</nav> </nav>
</body> </body>
<main> <main>

Loading…
Cancel
Save