diff options
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/macros/macros.html | 4 | ||||
| -rw-r--r-- | templates/page.html | 2 |
2 files changed, 4 insertions, 2 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 %} diff --git a/templates/page.html b/templates/page.html index c92e49c..979e0a1 100644 --- a/templates/page.html +++ b/templates/page.html @@ -47,7 +47,7 @@ {%- endif %}{%- endif %} {%- block page_footer %} - {{- macros::footer(page=page) }} + {{- macros::footer(page=page, config=config) }} {%- endblock page_footer %} </article> {%- block toc %} |
