Configure sitemap
Configure the sitemap.
These are the default sitemap configuration values. They apply to all pages unless overridden in front matter.
sitemap:
changeFreq: ""
disable: false
filename: sitemap.xml
priority: -1
[sitemap]
changeFreq = ''
disable = false
filename = 'sitemap.xml'
priority = -1
{
"sitemap": {
"changeFreq": "",
"disable": false,
"filename": "sitemap.xml",
"priority": -1
}
}
- changefreq
- (
string
) How frequently a page is likely to change. Valid values arealways
,hourly
,daily
,weekly
,monthly
,yearly
, andnever
. With the default value of""
Hugo will omit this field from the sitemap. See details. - disable
- New in v0.125.0
- (
bool
) Whether to disable page inclusion. Default isfalse
. Set totrue
in front matter to exclude the page. - filename
- (
string
) The name of the generated file. Default issitemap.xml
. - priority
- (
float
) The priority of a page relative to any other page on the site. Valid values range from 0.0 to 1.0. With the default value of-1
Hugo will omit this field from the sitemap. See details.
Last updated:
March 5, 2025
:
content: Consolidate configuration documentation (b6cae5cbc)
Improve this page