Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including hexo-generator-sitemap with all npm packages installed. Try it out:

var hexoGeneratorSitemap = require("hexo-generator-sitemap")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

hexo-generator-sitemap v2.0.0

Sitemap generator plugin for Hexo


Build Status NPM version Coverage Status

Generate sitemap.


$ npm install hexo-generator-sitemap --save
  • Hexo 4: 2.x
  • Hexo 3: 1.x
  • Hexo 2: 0.x


You can configure this plugin in _config.yml.

    path: sitemap.xml
    template: ./sitemap_template.xml
    rel: false
  • path - Sitemap path. (Default: sitemap.xml)
  • template - Custom template path. This file will be used to generate sitemap.xml (See default template)
  • rel - Add rel-sitemap to the site's header. (Default: false)

Excluding Posts

Add sitemap: false to the post's front matter.


RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free