Commit 2a8d494a by colm

adds a time based navigation neighbors in the sidebar: next article in time,…

adds a time based navigation neighbors in the sidebar: next article in time, previous article in time
parent ffdc0cb8
Pipeline #78 canceled with stage
......@@ -50,5 +50,20 @@
→ next article in {{article.category}}: {{ article.next_article_in_category.title }}
</a>
{% endif %}
<br>
<br>
<hr>
<br>
{% if article.prev_article %}
<a href="{{ SITEURL }}/{{ article.prev_article.url}}">
&larr; previous article in time {{ article.prev_article.title }}
</a><br>
{% endif %}
{% if article.next_article %}
<a href="{{ SITEURL }}/{{ article.next_article.url}}">
&rarr; next article in time {{ article.next_article.title }}
</a>
{% endif %}
</footer>
{% endblock %}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment