aboutsummaryrefslogtreecommitdiffstats
path: root/templates/wiki
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2018-04-12 18:08:11 +0100
committerGravatar Gareth Coles <[email protected]>2018-04-12 18:08:11 +0100
commite08bd0d58e8d93069dbfcbf89138bede7c33edb1 (patch)
treef5b217d09f9adbf2e2d0a0b9c43465786aa015ce /templates/wiki
parent[Wiki] Fix pages being wiped when saved without edits (diff)
[Wiki] Fix contents shown on pages with no headers
Diffstat (limited to 'templates/wiki')
-rw-r--r--templates/wiki/base.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/wiki/base.html b/templates/wiki/base.html
index b09e9cba..b2545977 100644
--- a/templates/wiki/base.html
+++ b/templates/wiki/base.html
@@ -34,7 +34,7 @@
<div class="uk-card uk-card-body uk-flex-left uk-flex uk-card-primary">
<ul class="uk-nav-default uk-nav-parent-icon" uk-nav>
{% if data is defined %}
- {% if "headers" in data %}
+ {% if "headers" in data and data.headers %}
<li class="uk-nav-header">Contents</li>
{% for header in data.headers %}
{% if "sub_headers" in header %}