Sitemap generator plugin for Hexo, Changes in the hexo-generator-sitemap
Support: .xml
、.txt
、.html
$ npm install hexo-sitemap-generator --save
You can configure this plugin in _config.yml
.
sitemaps:
path:
- sitemap.xml
- sitemap.txt
- sitemap.html
# template: ./sitemap_template.xml
# template_txt: ./sitemap_template.txt
# template_html: ./sitemap_template.html
rel: false
tags: true
categories: true
- path - Sitemap path. (Default: sitemap.xml)
- template - Custom template path. This file will be used to generate sitemap.xml (See default xml template)
- template_txt - Custom template path. This file will be used to generate sitemap.txt (See default txt template)
- template_html - Custom template path. This file will be used to generate sitemap.html (See default html template)
- rel - Add
rel-sitemap
to the site's header. (Default:false
) - tags - Add site's tags
- categories - Add site's categories
Add sitemap: false
to the post/page's front matter.
---
title: lorem ipsum
date: 2020-01-02
sitemap: false
---