Nezobrazovat navigaci pokud neexistují stránky

master
Emil Miler 5 years ago
parent 1d8513eb6d
commit 2925447702

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