summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoian Berberov <bberberov+github@gmail.com>2020-04-12 20:03:48 +0000
committerGitHub <noreply@github.com>2020-04-12 22:03:48 +0200
commitfc8a3c719f3332d9dcb9a204feaaf7775a237750 (patch)
tree7a0a39ca76ce8d0ef384b3da34a1313d3de7f3d8
parent276a14ae058acda05aa2754b03be4d28c55fa593 (diff)
downloadpelican-fc8a3c719f3332d9dcb9a204feaaf7775a237750.tar.gz
Add missing <ul> element to index.html template in notmyidea theme (#2545)
-rw-r--r--pelican/themes/notmyidea/templates/index.html8
1 files changed, 7 insertions, 1 deletions
diff --git a/pelican/themes/notmyidea/templates/index.html b/pelican/themes/notmyidea/templates/index.html
index 20ca7eee..14e9c14d 100644
--- a/pelican/themes/notmyidea/templates/index.html
+++ b/pelican/themes/notmyidea/templates/index.html
@@ -50,10 +50,16 @@
{% endfor %}
{% else %}
<section id="content" class="body">
-<h2>Pages</h2>
+ {% if pages %}
+ <h2>Pages</h2>
+ <ul>
{% for page in pages %}
<li><a href="{{ SITEURL }}/{{ page.url }}">{{ page.title }}</a></li>
{% endfor %}
+ </ul>
+ {% else %}
+ <p>This site currently has no content.</p>
+ {% endif %}
</section>
{% endif %}
{% endblock content %}