From: Vladimír Vondruš Date: Wed, 11 Oct 2017 19:36:00 +0000 (+0200) Subject: theme: provide etc. for paginated listings. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=1d7ca91be695f67e4c6f1f58958f6080951945ea;p=blog.git theme: provide etc. for paginated listings. --- diff --git a/pelican-theme/templates/archives.html b/pelican-theme/templates/archives.html index 638486b4..08589117 100644 --- a/pelican-theme/templates/archives.html +++ b/pelican-theme/templates/archives.html @@ -1,4 +1,15 @@ {% extends "base_blog.html" %} + +{% block head %} + {{- super() -}} + {% if articles_page.has_previous() %} + + {% endif %} + {% if articles_page.has_next() %} + + {% endif %} +{% endblock head %} + {% block content %}
{% block content_title %} diff --git a/pelican-theme/templates/base_blog_section.html b/pelican-theme/templates/base_blog_section.html index 72211f17..1dfaf350 100644 --- a/pelican-theme/templates/base_blog_section.html +++ b/pelican-theme/templates/base_blog_section.html @@ -1,4 +1,15 @@ {% extends "base_blog.html" %} + +{% block head %} + {{- super() -}} + {% if articles_page.has_previous() %} + + {% endif %} + {% if articles_page.has_next() %} + + {% endif %} +{% endblock head %} + {% block content %}
{% block content_title %}