aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJieiku2022-06-27 11:46:22 -0700
committerJieiku2022-06-27 11:46:22 -0700
commit1dd4aaa46ccc70e62ede89f38d8ce5c4561d9c2f (patch)
treec51c140b2aa807b91cd3aa34c9672742811517b7
parentf19cf4e76582d0309a9a3a2e6442d2add90b48bc (diff)
downloadabridge-1dd4aaa46ccc70e62ede89f38d8ce5c4561d9c2f.tar.gz
abridge-1dd4aaa46ccc70e62ede89f38d8ce5c4561d9c2f.tar.bz2
abridge-1dd4aaa46ccc70e62ede89f38d8ce5c4561d9c2f.zip
Hide Back to Top in Content Footer on short pages
-rw-r--r--config.toml2
-rw-r--r--templates/macros/macros.html4
2 files changed, 5 insertions, 1 deletions
diff --git a/config.toml b/config.toml
index 4e8367d..4bb8d87 100644
--- a/config.toml
+++ b/config.toml
@@ -124,7 +124,7 @@ stylesheets = [ "abridge-switcher.css" ] # Orange Automatic Dark/Light Theme bas
#stylesheets = [ "abridge-blueshade-dark.css" ] # BlueShade Dark Theme
#stylesheets = [ "abridge-blueshade-light.css" ] # BlueShade Light Theme
#stylesheets = [ "abridge.css", "extra.css" ] # example loading extra css
-
+#stylesheets = [ "abridge.css", "syntax/syntax-abridge.css" ]
# If you have js_bundle set, then Bundleable js files are ignored (it's assumed you bundled them).
# You can include whatever js you want in your bundle. just generate your file like below and place in your sites root static directory:
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 %}