From f78c71572b2bc7f408aca5a5b2843a2cd7e93524 Mon Sep 17 00:00:00 2001 From: amzrk2 Date: Tue, 14 Apr 2020 16:56:25 +0800 Subject: Add scroll to top button --- layouts/_default/single.html | 4 +++- layouts/index.html | 4 +++- layouts/partials/footer.html | 2 +- layouts/partials/scripts.html | 25 ++++++++++++++----------- layouts/tags/list.html | 4 +++- 5 files changed, 24 insertions(+), 15 deletions(-) (limited to 'layouts') diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 506127b..49e70df 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -30,7 +30,9 @@ {{ partial "sidebar.html" . }}
-
+ +
+
diff --git a/layouts/index.html b/layouts/index.html index 158c982..ddc93f1 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -32,7 +32,9 @@ {{ partial "sidebar.html" . }}
-
+ +
+
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 31dd791..9b2c461 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -2,7 +2,7 @@

© {{ now.Format "2006" }} {{ .Site.Title }} | - Powered by Hugo {{ hugo.Version }} + Powered by Hugo & Fuji

diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html index c5efc63..de2e018 100644 --- a/layouts/partials/scripts.html +++ b/layouts/partials/scripts.html @@ -1,22 +1,17 @@ +{{ if .Site.Params.scrollTop }} +{{ end }} +