From 1dd4aaa46ccc70e62ede89f38d8ce5c4561d9c2f Mon Sep 17 00:00:00 2001 From: Jieiku Date: Mon, 27 Jun 2022 11:46:22 -0700 Subject: Hide Back to Top in Content Footer on short pages --- templates/macros/macros.html | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'templates/macros/macros.html') diff --git a/templates/macros/macros.html b/templates/macros/macros.html index 96ff7db..97b481f 100644 --- a/templates/macros/macros.html +++ b/templates/macros/macros.html @@ -91,7 +91,11 @@ {%- macro footer(page) %} +{%- if page.reading_time %} +{%- if page.reading_time > 1 %}

Back to top

+{%- endif %} +{%- endif %} {%- endmacro footer %} -- cgit v1.3.1