diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2016-11-16 14:43:23 +0100 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2016-11-16 14:43:23 +0100 |
commit | 66f5dcf0ba6a554bec8cd45c01982d0588cf7bbc (patch) | |
tree | c7837b05d2a28cc6647a3e38cdbb2f041d438bc0 /templates | |
parent | 5a572e41990a16f204fd5bf0df7a209b77b17aab (diff) | |
download | kyblo-66f5dcf0ba6a554bec8cd45c01982d0588cf7bbc.tar.xz |
entry: Only add post-nav div if older or newer is given
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/entry.html | 4 |
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 %} |