From 8cb7861da3690fe109a792f49fd08fbf2bf37818 Mon Sep 17 00:00:00 2001 From: XPoet Date: Sat, 5 Sep 2020 23:08:03 +0800 Subject: [PATCH] pref: change back2top position --- layout/_partial/tools.ejs | 5 +++++ layout/page.ejs | 12 +----------- source/css/layout/_partial/tools.styl | 11 +++++++---- source/css/layout/page.styl | 4 ++-- source/js/scroll-to-top.js | 2 +- 5 files changed, 16 insertions(+), 18 deletions(-) diff --git a/layout/_partial/tools.ejs b/layout/_partial/tools.ejs index c168ab3..a59ccfe 100644 --- a/layout/_partial/tools.ejs +++ b/layout/_partial/tools.ejs @@ -17,5 +17,10 @@
  • + <% if (theme.back2top.enable) { %> +
  • + +
  • + <% } %> diff --git a/layout/page.ejs b/layout/page.ejs index c16d7ea..f5ac7f3 100644 --- a/layout/page.ejs +++ b/layout/page.ejs @@ -59,17 +59,7 @@ <%- partial('_partial/tools') %> - <% if (theme.back2top.enable) { %> -
    - -
    - <% } %> +