summaryrefslogtreecommitdiff
path: root/layouts/_default
diff options
context:
space:
mode:
authorFrancesco <tomaselli.fr@gmail.com>2024-05-16 16:53:32 +0200
committerFrancesco <tomaselli.fr@gmail.com>2024-05-16 16:53:32 +0200
commitf50f69283f03fc30ed3cfc3242aa863bd7083cfc (patch)
tree40984c5573560033ba6f710fcb96dae7a7a20495 /layouts/_default
parentb13719b39eb8ee379eeed39fa6f4d2ab165f0555 (diff)
Back to top button
Diffstat (limited to 'layouts/_default')
-rw-r--r--layouts/_default/single.html8
1 files changed, 8 insertions, 0 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 59ab477..1526971 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -67,6 +67,14 @@
{{ partial "comments.html" . }}
</div>
+ {{ if not (.Param "hideBackToTop") }}
+ <div class="back-to-top">
+ <a href="#top">
+ back to top
+ </a>
+ </div>
+ {{ end }}
+
</div>
{{ end }} \ No newline at end of file