diff options
Diffstat (limited to 'templates/macros/macros.html')
| -rw-r--r-- | templates/macros/macros.html | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/templates/macros/macros.html b/templates/macros/macros.html index 34ab651..bc38935 100644 --- a/templates/macros/macros.html +++ b/templates/macros/macros.html @@ -118,12 +118,26 @@ -{%- macro footer(page) %} -{%- if page.reading_time %} -{%- if page.reading_time > 2 %} +{%- 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 -%} + <a href="{{ page.lower.permalink | safe }}">‹ {{ page.lower.title | truncate(length=100) }}</a> + {%- endif %} + </div> + <div> + {% if page.higher -%} + <a href="{{ page.higher.permalink | safe }}"> {{ page.higher.title | truncate(length=100) }} ›</a> + {%- endif %} + </div> {%- endif %} +{%- endif %} +</nav> {%- endmacro footer %} |
