forked from em/receptty.org
Položky v menu se definují do pole v config.toml
This commit is contained in:
parent
aad28ff7ea
commit
de9b5825fb
@ -22,3 +22,12 @@ taxonomies = [
|
||||
|
||||
[extra]
|
||||
# Put all your custom variables here
|
||||
menu = [
|
||||
{name="Polévky", path="/kategorie/polevky/"},
|
||||
{name="Maso", path="/kategorie/maso/"},
|
||||
{name="Těstoviny & Rýže", path="/kategorie/testoviny-a-ryze/"},
|
||||
{name="Zelenina", path="/kategorie/zelenina/"},
|
||||
{name="Přílohy", path="/kategorie/prilohy/"},
|
||||
{name="Dezerty", path="/kategorie/dezerty/"},
|
||||
{name="Nápoje", path="/kategorie/napoje/"},
|
||||
]
|
||||
|
@ -18,14 +18,9 @@
|
||||
</div>
|
||||
<div class="subnav">
|
||||
<ul>
|
||||
<li><a href="/kategorie/polevky/">Polévky</a></li>
|
||||
<li><a href="/kategorie/maso/">Maso</a></li>
|
||||
<li><a href="/kategorie/testoviny/">Těstoviny & Rýže</a></li>
|
||||
<li><a href="/kategorie/zelenina/">Zelenina</a></li>
|
||||
<li><a href="/kategorie/prilohy/">Přílohy</a></li>
|
||||
<li><a href="/kategorie/pomazanky/">Pomazánky</a></li>
|
||||
<li><a href="/kategorie/dezerty/">Dezerty</a></li>
|
||||
<li><a href="/kategorie/napoje/">Nápoje</a></li>
|
||||
{% for item in config.extra.menu %}
|
||||
<li><a href="{{ item.path }}">{{ item.name }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
|
Loading…
Reference in New Issue
Block a user