| 1 |
--- |
| 2 |
title: Configure sitemap |
| 3 |
linkTitle: Sitemap |
| 4 |
description: Configure the sitemap. |
| 5 |
categories: [] |
| 6 |
keywords: [] |
| 7 |
--- |
| 8 |
|
| 9 |
These are the default sitemap configuration values. They apply to all pages unless overridden in front matter. |
| 10 |
|
| 11 |
{{< code-toggle config=sitemap />}} |
| 12 |
|
| 13 |
`changefreq` |
| 14 |
: (`string`) How frequently a page is likely to change. Valid values are `always`, `hourly`, `daily`, `weekly`, `monthly`, `yearly`, and `never`. With the default value of `""` Hugo will omit this field from the sitemap. See [details][changefreqdef]. |
| 15 |
|
| 16 |
`disable` |
| 17 |
: (`bool`) Whether to disable page inclusion. Default is `false`. Set to `true` in front matter to exclude the page. |
| 18 |
|
| 19 |
`filename` |
| 20 |
: (`string`) The name of the generated file. Default is `sitemap.xml`. |
| 21 |
|
| 22 |
`priority` |
| 23 |
: (`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][prioritydef]. |
| 24 |
|
| 25 |
[changefreqdef]: https://www.sitemaps.org/protocol.html#changefreqdef |
| 26 |
[prioritydef]: https://www.sitemaps.org/protocol.html#prioritydef |