summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2016-11-16 14:43:23 +0100
committerJohannes Löthberg <johannes@kyriasis.com>2016-11-16 14:43:23 +0100
commit66f5dcf0ba6a554bec8cd45c01982d0588cf7bbc (patch)
treec7837b05d2a28cc6647a3e38cdbb2f041d438bc0
parent5a572e41990a16f204fd5bf0df7a209b77b17aab (diff)
downloadkyblo-66f5dcf0ba6a554bec8cd45c01982d0588cf7bbc.tar.xz
entry: Only add post-nav div if older or newer is given
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
-rw-r--r--templates/entry.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/templates/entry.html b/templates/entry.html
index 1d58209..cdd759f 100644
--- a/templates/entry.html
+++ b/templates/entry.html
@@ -20,9 +20,10 @@
{% endif %}
</footer>
</article>
+{% if older or newer %}
<nav>
<div id="post-nav">
-{% if older and newer%}
+{% if older and newer %}
<a href="{{ older[0]['file'] }}.html">Older ({{ older[0]['title'] }})</a> — <a href="{{ newer[0]['file'] }}.html">Newer ({{ newer[0]['title'] }})</a>
{% elif older %}
<a href="{{ older[0]['file'] }}.html">Older ({{ older[0]['title'] }})</a>
@@ -31,4 +32,5 @@
{% endif %}
</nav>
</div>
+{% endif %}
{% endblock %}