Hexo sitemap [error] TypeError: Cannot read property 'sitemap' of undefined

sitemap [error] Cannot read property 'sitemap' of undefined

版本:

  • Hexo 2.8.3

將原本 hexo-generator-sitemap Plugin 修改成以下版本既可。

1
2
$ npm uninstall hexo-generator-sitemap
$ npm install hexo-generator-sitemap@0.2.0 --save

_config.yml

1
2
sitemap:
path: sitemap.xml

Reference :
When I use the plugin, I can’t deploy my blog with error #10
hexo-generator-sitemap