diff --git a/_config.yml b/_config.yml index 5d1848f..ef13b17 100644 --- a/_config.yml +++ b/_config.yml @@ -153,20 +153,6 @@ code_copy: style: default # values: default | mac -# --------------------------------------------------------------------------------------- -# Sidebar tools -# --------------------------------------------------------------------------------------- -side_tools: - enable: false - - -# --------------------------------------------------------------------------------------- -# Back to top -# --------------------------------------------------------------------------------------- -back2top: - enable: true - - # --------------------------------------------------------------------------------------- # Table of Contents in the Sidebar # --------------------------------------------------------------------------------------- @@ -181,7 +167,7 @@ toc: # --------------------------------------------------------------------------------------- -# # Post copyright info +# Post copyright info # --------------------------------------------------------------------------------------- copyright_info: enable: true diff --git a/layout/_partial/scripts.ejs b/layout/_partial/scripts.ejs index 7e9a2f0..eb63ec2 100644 --- a/layout/_partial/scripts.ejs +++ b/layout/_partial/scripts.ejs @@ -1,17 +1,11 @@ <%- __js([ 'js/utils.js', + 'js/main.js', 'js/header-shrink.js', - 'js/main.js' + 'js/back2top.js', + 'js/dark-light-toggle.js' ]) %> -<% if (theme.side_tools.enable) { %> - <%- __js('js/dark-light-toggle.js') %> - - <% if (theme.back2top.enable) { %> - <%- __js('js/back2top.js') %> - <% } %> -<% } %> - <% if (theme.local_search.enable) { %> <%- __js('js/local-search.js') %> <% } %> diff --git a/layout/_partial/side-tools-container.ejs b/layout/_partial/side-tools-container.ejs new file mode 100644 index 0000000..9f0730f --- /dev/null +++ b/layout/_partial/side-tools-container.ejs @@ -0,0 +1,35 @@ +
+ + + + +
diff --git a/layout/_partial/tools2.ejs b/layout/_partial/tools2.ejs deleted file mode 100644 index 6140d1d..0000000 --- a/layout/_partial/tools2.ejs +++ /dev/null @@ -1,32 +0,0 @@ -
- - - - -
diff --git a/layout/page.ejs b/layout/page.ejs index 69a52c7..c49db0a 100644 --- a/layout/page.ejs +++ b/layout/page.ejs @@ -59,12 +59,9 @@ <%- partial('_partial/tools') %> - - <% if (theme.side_tools.enable) { %> -
- <%- partial('_partial/tools2') %> -
- <% } %> +
+ <%- partial('_partial/side-tools-container') %> +