Options
# Plugin Options
# hostname
- Type:
string
- Required: Yes
The domain name where the current site is deployed, the plugin needs this option to work.
# extraUrls
- Type:
string[]
- Required: No
Extra links to be included.
If you have some links not including in VuePress Router (normally in public directory or generated by other tools directly), you may need this option.
E.g.: ['/about.html', '/api/']
# excludeUrls
- Type:
string[]
- Default:
['/404.html']
Urls excluding from sitemap, starting with absolute path.
By default all the urls generated by VuePress (excluding 404 page) will be added into sitemap.
# sitemapFilename
- Type:
string
- Default value:
"sitemap.xml"
The output filename, relative to output directory.
# changefreq
- Type:
"always" | "hourly" | "daily" | "weekly" |"monthly" | "yearly" | "never"
- Default value:
"daily"
Page default update frequency, will be override by sitemap.changefreq in Frontmatter.
# priority
Type:
number
Default:
0.5
Page priority, from 0
to 1
.
# modifyTimeGetter
Type:
(page: Page) => string
Required:
false
Last modify time getter. By default, the plugin will use the timestamp generated by git plugin.
# Frontmatter Options
# sitemap.changefreq
- Type:
"always" | "hourly" | "daily" | "weekly" | "monthly" | "yearly" | "never"
- Default:
"daily"
Page default update frequency. This will override changefreq in Plugin Options.
# sitemap.exclude
- Type:
boolean
- Default:
false
Whether exclude the page from sitemap
# sitemap.priority
- Type:
number
- Default:
0.5
Page priority, range from 0
to 1
.