All Projects → ekoeryanto → vuepress-plugin-sitemap

ekoeryanto / vuepress-plugin-sitemap

Licence: MIT license
Sitemap generator plugin for vuepress.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to vuepress-plugin-sitemap

Sitemap Generator
Easily create XML sitemaps for your website.
Stars: ✭ 273 (+196.74%)
Mutual labels:  sitemap, seo
Gatsby Advanced Starter
A high performance skeleton starter for GatsbyJS that focuses on SEO/Social features/development environment.
Stars: ✭ 1,224 (+1230.43%)
Mutual labels:  sitemap, seo
Next Sitemap
Sitemap generator for next.js. Generate sitemap(s) and robots.txt for all static/pre-rendered/dynamic/server-side pages.
Stars: ✭ 426 (+363.04%)
Mutual labels:  sitemap, seo
sitemap-checker
a tool for validate xml sitemap and sitemap index files for broken links
Stars: ✭ 21 (-77.17%)
Mutual labels:  sitemap, seo
Craft Seomatic
SEOmatic facilitates modern SEO best practices & implementation for Craft CMS 3. It is a turnkey SEO system that is comprehensive, powerful, and flexible.
Stars: ✭ 135 (+46.74%)
Mutual labels:  sitemap, seo
sitemap
A simple sitemap generator for Laravel Framework.
Stars: ✭ 32 (-65.22%)
Mutual labels:  sitemap, seo
Dctb Links
My Personal Links
Stars: ✭ 65 (-29.35%)
Mutual labels:  sitemap, seo
Vuepress
📝 Minimalistic Vue-powered static site generator
Stars: ✭ 19,730 (+21345.65%)
Mutual labels:  seo, vuepress
Craft Sitemap
Craft plugin to generate a sitemap.
Stars: ✭ 105 (+14.13%)
Mutual labels:  sitemap, seo
Laravel Seo Tools
Laravel Seo package for Content writer/admin/web master who do not know programming but want to edit/update SEO tags from dashboard
Stars: ✭ 99 (+7.61%)
Mutual labels:  sitemap, seo
siteshooter
📷 Automate full website screenshots and PDF generation with multiple viewport support.
Stars: ✭ 63 (-31.52%)
Mutual labels:  sitemap, seo
Seo
SEO utilities including a unique field type, sitemap & redirect manager
Stars: ✭ 210 (+128.26%)
Mutual labels:  sitemap, seo
Silverstripe-SEO
A SilverStripe module to optimise the Meta, crawling, indexing, and sharing of your website content
Stars: ✭ 41 (-55.43%)
Mutual labels:  sitemap, seo
strapi-plugin-sitemap
🔌 Generate a highly customizable sitemap XML in Strapi CMS
Stars: ✭ 136 (+47.83%)
Mutual labels:  sitemap, seo
classicpress-seo
Classic SEO is the first SEO plugin built specifically to work with ClassicPress. A fork of Rank Math, the plugin contains many essential SEO tools to help optimize your website.
Stars: ✭ 18 (-80.43%)
Mutual labels:  sitemap, seo
Sitemap Module
Sitemap Module for Nuxt
Stars: ✭ 539 (+485.87%)
Mutual labels:  sitemap, seo
Laravel Sitemap
Create and generate sitemaps with ease
Stars: ✭ 1,325 (+1340.22%)
Mutual labels:  sitemap, seo
Sitemap Generator Crawler
Script that generates a sitemap by crawling a given URL
Stars: ✭ 169 (+83.7%)
Mutual labels:  sitemap, seo
Sitemap Generator Cli
Creates an XML-Sitemap by crawling a given site.
Stars: ✭ 214 (+132.61%)
Mutual labels:  sitemap, seo
Awesome-meta-tags
📙 Awesome collection of meta tags
Stars: ✭ 18 (-80.43%)
Mutual labels:  seo

vuepress-plugin-sitemap

Sitemap generator plugin for vuepress.

Install

  • Yarn

    yarn add vuepress-plugin-sitemap
  • NPM

    npm install vuepress-plugin-sitemap

in v2.0.0, dependencies except sitemap are moved to peerDependencies so we need to install esm module manually (chalk and commander are already installed by vuepress) when we use this plugin with cli method.

Usage

Vuepress v1.x

// .vuepress/config.js
module.exports = {
  plugins: {
    'sitemap': {
      hostname: 'https://pake.web.id'
    },
  }
}

Vuepress v0.x

There's no plugin supported with Vuepress v0.x so we need to run it after the build process manually (or with npm postbuild script).

  1. Manual

    ./node_modules/.bin/vuepress -d "dist"
    ./node_modules/.bin/vuepress-sitemap -H "https://pake.web.id" -d "dist"
  2. NPM Script

    {
      scripts: {
        build: "vuepress build docs -d dist",
        postbuild: "vuepress-sitemap -H https://pake.web.id -d dist"
      }
    }

Options

hostname:
  type: string
  required: true
  default: null
  description: website root url
  example: https://pake.web.id

outFile:
  type: string
  required: false
  default: sitemap.xml
  description: sitemap file name
  example: sitemap.txt

urls:
  type: array
  required: false
  default: [],
  description: custom urls to append
  example: [
    { url: '/place', changefreq: 'monthly' }
  ]

exclude:
  type: array
  required: false
  default: [],
  description: pages path to exclude
  example: ['/404.html']

dateFormatter:
  type: function
  required: false
  description: change the date format
  default: time => new Date(time).toISOString()

Frontmatter Options

To override global option for a specific page, we can use sitemap key on the frontmatter, currently we just have 2 options, they are exclude and changefreq.

Example

---
sitemap:
  exclude: false
  changefreq: hourly
---
# Content Updated Frequently

Note: Other options of sitemap can be used, all options passed except urls, hostname, cacheTime, xslUrl, xmlNs and outFile will be passed to sitemap.createSitemap constructor.

Related Plugins

Credits

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].