hexo/node_modules/hexo-generator-baidu-sitemap
jkjoy 9a9cb42f53 20231003 update 2023-10-03 11:14:36 +08:00
..
lib 20231003 update 2023-10-03 11:14:36 +08:00
node_modules 20231003 update 2023-10-03 11:14:36 +08:00
LICENSE 20231003 update 2023-10-03 11:14:36 +08:00
README.md 20231003 update 2023-10-03 11:14:36 +08:00
baidusitemap.ejs 20231003 update 2023-10-03 11:14:36 +08:00
index.js 20231003 update 2023-10-03 11:14:36 +08:00
package.json 20231003 update 2023-10-03 11:14:36 +08:00

README.md

Sitemap generator

Generate sitemap.

使用站图的初衷是为自己的博客添加站内搜索,如果想更好的发挥站图的作用建议手动提交baidusitemap给百度.

Install

if your hexo version is 2.x.x, you should install as follow:

$ npm install hexo-generator-baidu-sitemap@0.0.8 --save
install process ...

if version is 3.x.x, you should install as follow:

$ npm install hexo-generator-baidu-sitemap@0.1.4 --save
install process ...

Update

$ npm remove hexo-generator-baidu-sitemap
install process ...
$ npm install hexo-generator-baidu-sitemap --save

if your hexo version is 2.x.x, you can configure this plugin in _config.yml.

baidusitemap: path: baidusitemap.xml


if version is 3.x.x, you should configure this plugin in `_config.yml`.

``` yaml
baidusitemap:
path: baidusitemap.xml

  • path - Sitemap path. (Default: baidusitemap.xml)

Errors

Maybe response is "hexo is not definded",then you should:

$ cd node_modules/hexo-generator-baidu-sitemap/
node_modules/hexo-generator-baidu-sitemap/
$ npm install