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.1.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 4: 2.x
  • 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
  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 template)
  • rel - Add rel-sitemap to the site's header. (Default: false)
  • tags - Add site's tags
  • categories - Add site's categories

Exclude Posts/Pages

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

---
title: lorem ipsum
date: 2020-01-02
sitemap: false
---

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