【hexo】Hexo升级版本号导致external_link警告问题
hexo升级从3.9.0到6.3.0后,启动提示警告如下:
WARN Deprecated config detected: “external_link” with a Boolean value is deprecated. See https://hexo.io/docs/configuration for more details.
低版本Hexo中_config.yml配置如下::
external_link: true
修改为新的语法配置:
external_link:
enable: true # Open external links in new tab
field: site # Apply to the whole site
exclude: ''
最后重新删除缓存依赖,编译即可:
npm cache clean --force
rm -rf node_modules
rm package-lock.json
npm install
hexo clean
hexo g