1.2.2 • Published 8 years ago
@pyyzcwg2833/hexo-generator-sitemap v1.2.2
hexo-generator-sitemap
Generate sitemap.
Difference from offical version
In the sitemap generated by offical hexo-generator-sitemap, the index page url is like http://www.example.com/index.html, rather than my expected http://www.example.com/. In order to fix the bug, I fork the offical repository and modify its source code. The reason for this is using http://www.example.com/xxx/ instead of http://www.example.com/xxx/index.html helps your search engine optimization.
Install
$ npm install @pyyzcwg2833/hexo-generator-sitemap --save- Hexo 3: 1.x
- Hexo 2: 0.x
Options
You can configure this plugin in _config.yml.
sitemap:
path: sitemap.xml
template: ./sitemap_template.xml- path - Sitemap path. (Default: sitemap.xml)
- template - Custom template path. This file will be used to generate sitemap.xml (See default template)
Excluding Posts
Add sitemap: false to the post's front matter.