diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2016-11-15 13:50:20 +0100 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2016-11-15 13:50:20 +0100 |
commit | 46bad35efce8817fd9fae0450e416f820ff742ce (patch) | |
tree | 9fa4cc4e460c34ce358acab323d4860b6cdf401e /templates/entry.html | |
parent | 294fd044deff8e727a29847712a25149c1545063 (diff) | |
download | kyblo-46bad35efce8817fd9fae0450e416f820ff742ce.tar.xz |
Simplify older/newer logic
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
Diffstat (limited to 'templates/entry.html')
-rw-r--r-- | templates/entry.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/entry.html b/templates/entry.html index f5f11c7..730e48d 100644 --- a/templates/entry.html +++ b/templates/entry.html @@ -12,11 +12,11 @@ </article> <div id="post-nav"> {% if older and newer%} - <a href="{{ older['file'] }}.html">Older ({{ older['title'] }})</a> — <a href="{{ newer['file'] }}.html">Newer ({{ newer['title'] }})</a> + <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['file'] }}.html">Older ({{ older['title'] }})</a> + <a href="{{ older[0]['file'] }}.html">Older ({{ older[0]['title'] }})</a> {% elif newer %} - <a href="{{ newer['file'] }}.html">Newer ({{ newer['title'] }})</a> + <a href="{{ newer[0]['file'] }}.html">Newer ({{ newer[0]['title'] }})</a> {% endif %} </div> {% endblock %} |