diff options
| author | Jieiku | 2022-06-27 11:46:22 -0700 |
|---|---|---|
| committer | Jieiku | 2022-06-27 11:46:22 -0700 |
| commit | 1dd4aaa46ccc70e62ede89f38d8ce5c4561d9c2f (patch) | |
| tree | c51c140b2aa807b91cd3aa34c9672742811517b7 /templates/macros | |
| parent | f19cf4e76582d0309a9a3a2e6442d2add90b48bc (diff) | |
| download | abridge-1dd4aaa46ccc70e62ede89f38d8ce5c4561d9c2f.tar.gz abridge-1dd4aaa46ccc70e62ede89f38d8ce5c4561d9c2f.tar.bz2 abridge-1dd4aaa46ccc70e62ede89f38d8ce5c4561d9c2f.zip | |
Hide Back to Top in Content Footer on short pages
Diffstat (limited to 'templates/macros')
| -rw-r--r-- | templates/macros/macros.html | 4 |
1 files changed, 4 insertions, 0 deletions
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 %} <p><b><a href="#">Back to top</a></b></p> +{%- endif %} +{%- endif %} {%- endmacro footer %} |
