aboutsummaryrefslogtreecommitdiff
path: root/templates/macros/macros.html
diff options
context:
space:
mode:
authorWilliam Ouwehand2023-06-16 19:31:22 +0200
committerWilliam Ouwehand2023-06-16 19:31:22 +0200
commiteade3b10759e73c99facb55e7f258f6d98f41b5a (patch)
treec660ccbc836f47f0e8750bcd5408338e234f3557 /templates/macros/macros.html
parent60b1bfea5d2eba0a1f1c9807087635c0abc6cfd0 (diff)
downloadabridge-eade3b10759e73c99facb55e7f258f6d98f41b5a.tar.gz
abridge-eade3b10759e73c99facb55e7f258f6d98f41b5a.tar.bz2
abridge-eade3b10759e73c99facb55e7f258f6d98f41b5a.zip
add disable setting in config
Diffstat (limited to 'templates/macros/macros.html')
-rw-r--r--templates/macros/macros.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/templates/macros/macros.html b/templates/macros/macros.html
index ee5f896..bc38935 100644
--- a/templates/macros/macros.html
+++ b/templates/macros/macros.html
@@ -118,11 +118,12 @@
-{%- macro footer(page) %}
+{%- macro footer(page, config) %}
{%- if page.reading_time and page.reading_time > 2 %}
<p><b><a href="#">Back to top</a></b></p>
{%- endif %}
<nav><!-- prev/next page title. Keep for CSS selector even if empty -->
+{% if not config.extra.hide_page_nextprev_titles | default(value=false) %}
{% if page.lower or page.higher-%}
<div>
{% if page.lower -%}
@@ -135,6 +136,7 @@
{%- endif %}
</div>
{%- endif %}
+{%- endif %}
</nav>
{%- endmacro footer %}