Skip to content
This repository has been archived by the owner on Jan 8, 2023. It is now read-only.

Hsinyau/hexo-sitemap-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hexo-sitemap-generator

Sitemap generator plugin for Hexo, Changes in the hexo-generator-sitemap

Support: .xml.txt.html

Install

$ npm install hexo-sitemap-generator --save

Options

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

Exclude Posts/Pages

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

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

About

Sitemap generator plugin for Hexo

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published