Nezobrazovat navigaci pokud neexistují stránky

master
Emil Miler 4 years ago
parent 1d8513eb6d
commit 2925447702

@ -26,11 +26,13 @@
</div>
<div id="content">
<div id="nav">
{% if section.pages %}
<ul>
{% for post in section.pages %}
<li><a href="{{ post.permalink }}">{{ post.title }}</a></li>
{% endfor %}
</ul>
{% endif %}
</div>
<div id="main">content</div>
</div>