aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorJieiku2022-06-11 20:44:13 -0700
committerJieiku2022-06-11 20:44:13 -0700
commit8546859c9d6cbf5347091a36680f7c07440a441a (patch)
tree00ac04f0218c4ef8adf80ff27f42391966061909 /templates
parentd4382358d8fc7f0bc66a86b8fe4bb6d8bafadd15 (diff)
downloadabridge-8546859c9d6cbf5347091a36680f7c07440a441a.tar.gz
abridge-8546859c9d6cbf5347091a36680f7c07440a441a.tar.bz2
abridge-8546859c9d6cbf5347091a36680f7c07440a441a.zip
Hide Back-to-Top on Short Pages
Diffstat (limited to 'templates')
-rw-r--r--templates/page.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/templates/page.html b/templates/page.html
index c653018..eb06ac3 100644
--- a/templates/page.html
+++ b/templates/page.html
@@ -66,5 +66,11 @@
{%- endblock content %}
{%- block gotop %}
+
+{%- if page.reading_time %}
+{%- if page.reading_time > 1 %}
<a href="#" class="top">&cuwed;</a>
+{%- endif %}
+{%- endif %}
+
{%- endblock gotop %} \ No newline at end of file