diff --git a/_config.yml b/_config.yml index 1f60469..239ca35 100644 --- a/_config.yml +++ b/_config.yml @@ -364,8 +364,6 @@ theme_color: body_scrollbar: # Place the scrollbar over the content. overlay: false - # Reserving space for the scrollbar gutter even if the content is not overflowing. - stable: false codeblock: # Code Highlight theme diff --git a/scripts/events/lib/config.js b/scripts/events/lib/config.js index a22d09f..3823a4a 100644 --- a/scripts/events/lib/config.js +++ b/scripts/events/lib/config.js @@ -10,7 +10,7 @@ module.exports = hexo => { hexo.log.warn('Documentation: https://theme-next.js.org/docs/getting-started/configuration.html'); } - const { cache, changyan, growingio_analytics, language_switcher, lazyload, leancloud_visitors } = hexo.theme.config; + const { body_scrollbar, cache, changyan, growingio_analytics, language_switcher, lazyload, leancloud_visitors } = hexo.theme.config; const warning = function(...args) { hexo.log.warn(`Since ${args[0]} is turned on, the ${args[1]} is disabled to avoid potential hazards.`); }; @@ -29,6 +29,9 @@ module.exports = hexo => { if (growingio_analytics) { hexo.log.warn('growingio_analytics is deprecated. Please migrate to another analytics provider.'); } + if (body_scrollbar?.stable) { + hexo.log.warn('The `body_scrollbar.stable` theme option is deprecated and will be removed in the next version.'); + } if (lazyload) { hexo.log.warn('The `lazyload` theme option is deprecated and will be removed in the next version.'); hexo.log.warn('Use `marked.lazyload: true` in Hexo `_config.yml` instead. hexo-renderer-marked will add `loading="lazy"` to images.');