diff options
author | Alex Auvolat <alex@adnab.me> | 2022-01-31 16:28:01 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-01-31 16:28:01 +0100 |
commit | fba1b065036115cea8d067b74ee04c292db022b8 (patch) | |
tree | 3c259f1ebac5e72bf848bdf1229222d15cb05779 /templates/partials/doc/page_toc.html | |
parent | 242fcc297903c2e47c35946da5f99f97d091de0a (diff) | |
download | garagehq.deuxfleurs.fr-fba1b065036115cea8d067b74ee04c292db022b8.tar.gz garagehq.deuxfleurs.fr-fba1b065036115cea8d067b74ee04c292db022b8.zip |
Improve sections as pages
Diffstat (limited to 'templates/partials/doc/page_toc.html')
-rw-r--r-- | templates/partials/doc/page_toc.html | 6 |
1 files changed, 4 insertions, 2 deletions
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 @@ </ol> {% endif %} <div class="bg-gray-100 rounded-bl-lg"> - {% 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 %} </div> -</aside>
\ No newline at end of file +</aside> |