mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-28 22:19:59 +02:00
Allow renaming of sitemap.xml
This commit is contained in:
committed by
Steve Francia
parent
26d23f7f4b
commit
6cdb8109cf
@@ -23,6 +23,7 @@ along with Sitemap-specific ones:
|
||||
|
||||
**.Sitemap.ChangeFreq** The page change frequency<br>
|
||||
**.Sitemap.Priority** The priority of the page<br>
|
||||
**.Sitemap.Filename** The sitemap filename<br>
|
||||
|
||||
In addition to the standard node variables, the homepage has access to all
|
||||
site pages through `.Data.Pages`.
|
||||
@@ -53,10 +54,11 @@ on render. Please don't include this in the template as it's not valid HTML.*
|
||||
|
||||
## Configuring sitemap.xml
|
||||
|
||||
Defaults for `<changefreq>` and `<priority>` values can be set in the site's config file, e.g.:
|
||||
Defaults for `<changefreq>`, `<priority>` and `filename` values can be set in the site's config file, e.g.:
|
||||
|
||||
[sitemap]
|
||||
changefreq = "monthly"
|
||||
priority = 0.5
|
||||
filename = "sitemap.xml"
|
||||
|
||||
The same fields can be specified in an individual page's front matter in order to override the value for that page.
|
||||
The same fields can be specified in an individual page's front matter in order to override the value for that page.
|
||||
|
Reference in New Issue
Block a user