diff --git a/source/js/next-boot.js b/source/js/next-boot.js index 52ec9aec0f..36156beda0 100644 --- a/source/js/next-boot.js +++ b/source/js/next-boot.js @@ -104,6 +104,7 @@ NexT.boot.motion = function() { .add(NexT.motion.middleWares.sidebar) .bootstrap(); } + if(CONFIG.sidebar.display === 'remove') return; NexT.utils.updateSidebarPosition(); }; diff --git a/source/js/schemes/muse.js b/source/js/schemes/muse.js index f4be56df17..cfb10af381 100644 --- a/source/js/schemes/muse.js +++ b/source/js/schemes/muse.js @@ -6,6 +6,14 @@ document.addEventListener('DOMContentLoaded', () => { var SIDEBAR_WIDTH = CONFIG.sidebar.width || 320; var SIDEBAR_DISPLAY_DURATION = 200; var mousePos = {}; + var isRemove = CONFIG.sidebar.display === 'remove'; + + if (isRemove) { + updateFooterPosition(); + window.addEventListener('resize', updateFooterPosition); + window.addEventListener('scroll', updateFooterPosition); + return; + } var sidebarToggleLines = { lines: document.querySelector('.sidebar-toggle'),