Fixed empty list in table of contents when no headline is defined

This commit is contained in:
squidfunk
2016-03-12 13:20:19 +01:00
parent bf227de93e
commit cf8e992c24
3 changed files with 3 additions and 2 deletions

View File

@@ -33,7 +33,7 @@
{% endif %}
<!-- Render anchors of active page -->
{% if toc %}
{% if toc and (toc | first) %}
<ul>
{% for toc_item in toc %}