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 v1.2.0

Sitemap generator plugin for Hexo

hexo-generator-sitemap

Build Status NPM version Coverage Status

Generate sitemap.

Install

$ npm install 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.

Metadata

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