hexo-generator-seo-xian-sitemap

1.5.2 • Public • Published

hexo-generator-seo-xian-sitemap

Generate SEO-friendly sitemap.

Inspired by XML Sitemap in Yoast Wordpress SEO Plugin (https://yoast.com).

It will generate separated sitemap files for pages, posts, categories, tags and a XSL stylesheet.

Install

$ npm install hexo-generator-seo-xian-sitemap --save

Options

You can configure this plugin in _config.yml.

sitemap:
    path: sitemap.xml
    spath: /sy/

You can exclude tag or category page from the sitemap by adding tag: false or category: false under the sitemap configuration.

sitemap:
    path: sitemap.xml
    spath: /sy/
    tag: false
    category: false
  • path - Index sitemap path.
  • spath - Specify the location where the file generation is stored and not placed in the root directory

Excluding pages or posts

You can exclude pages or posts from the sitemap by adding sitemap: false to the relevant front-matter.

/hexo-generator-seo-xian-sitemap/

    Package Sidebar

    Install

    npm i hexo-generator-seo-xian-sitemap

    Weekly Downloads

    0

    Version

    1.5.2

    License

    MIT

    Unpacked Size

    24.5 kB

    Total Files

    21

    Last publish

    Collaborators

    • xyhhy