From 52e5d7ce69f67e4deb6a897c96f892dbf552884e Mon Sep 17 00:00:00 2001 From: Mimi <1119186082@qq.com> Date: Wed, 29 Jul 2020 17:49:25 +0800 Subject: [PATCH] Deprecation warning of `next.yml` --- scripts/events/lib/config.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/events/lib/config.js b/scripts/events/lib/config.js index 5e2dc2f..0b81861 100644 --- a/scripts/events/lib/config.js +++ b/scripts/events/lib/config.js @@ -10,11 +10,9 @@ try { module.exports = hexo => { const data = hexo.locals.get('data'); - /** - * Merge configs from _data/next.yml into hexo.theme.config. - * If next.yml not exists, merge all `theme_config.*` into hexo.theme.config. - */ if (data.next) { + hexo.log.warn('`next.yml` is deprecated. Please upgrade to Hexo 5.0 and use `_config.next.yml` instead.'); + hexo.log.warn('Documentation: https://theme-next.js.org/docs/getting-started/configuration.html'); hexo.config = merge(hexo.config, data.next); hexo.theme.config = merge(hexo.theme.config, data.next); } else if (hexo.config.theme_config) {