mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-17 18:22:33 +00:00
Deprecation warning of next.yml
This commit is contained in:
parent
0ebb0c5810
commit
52e5d7ce69
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user