From fba1b065036115cea8d067b74ee04c292db022b8 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Mon, 31 Jan 2022 16:28:01 +0100 Subject: Improve sections as pages --- templates/partials/doc/page_toc.html | 6 ++-- templates/partials/doc/pagination.html | 63 ++++++++++++++-------------------- 2 files changed, 29 insertions(+), 40 deletions(-) (limited to 'templates/partials/doc') diff --git a/templates/partials/doc/page_toc.html b/templates/partials/doc/page_toc.html index 238d8c3..b874b4b 100644 --- a/templates/partials/doc/page_toc.html +++ b/templates/partials/doc/page_toc.html @@ -26,8 +26,10 @@ {% endif %}
- {% if page.earlier or page.later or page.lighter or page.heavier %} + {% if page.earlier or page.later or page.lighter or page.heavier or page.pages %} + {% include "partials/doc/pagination.html" %} + {% elif page.ancestors and page.ancestors | length == 3 %} {% include "partials/doc/pagination.html" %} {% endif %}
- \ No newline at end of file + diff --git a/templates/partials/doc/pagination.html b/templates/partials/doc/pagination.html index 0170a77..167669e 100644 --- a/templates/partials/doc/pagination.html +++ b/templates/partials/doc/pagination.html @@ -7,64 +7,51 @@