diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2016-11-15 11:27:14 +0100 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2016-11-15 11:27:54 +0100 |
commit | 956fb518ea235a62f14397c1add690f05e0a20b1 (patch) | |
tree | db0425b953019dd4c9100686503422203bab69a1 /templates | |
parent | 517a416ebd9afb75275998bc257e07404d991cc1 (diff) | |
download | kyblo-956fb518ea235a62f14397c1add690f05e0a20b1.tar.xz |
Add entry title to navigation links
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/entry.html | 6 | ||||
-rw-r--r-- | templates/index.html | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/templates/entry.html b/templates/entry.html index ec28fe4..f5f11c7 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</a> — <a href="{{ newer['file'] }}.html">Newer</a> + <a href="{{ older['file'] }}.html">Older ({{ older['title'] }})</a> — <a href="{{ newer['file'] }}.html">Newer ({{ newer['title'] }})</a> {% elif older %} - <a href="{{ older['file'] }}.html">Older</a> + <a href="{{ older['file'] }}.html">Older ({{ older['title'] }})</a> {% elif newer %} - <a href="{{ newer['file'] }}.html">Newer</a> + <a href="{{ newer['file'] }}.html">Newer ({{ newer['title'] }})</a> {% endif %} </div> {% endblock %} diff --git a/templates/index.html b/templates/index.html index 643af81..628e078 100644 --- a/templates/index.html +++ b/templates/index.html @@ -12,7 +12,7 @@ </article> {% if older %} <div id="post-nav"> - <a class="older" href="{{ older['file'] }}.html">Older</a> + <a class="older" href="{{ older['file'] }}.html">Older ({{ older['title'] }})</a> </div> {% endif %} {% endblock %} |