mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
Added sitemap configuration documentation.
This commit is contained in:
parent
caaf637068
commit
209166a261
2 changed files with 12 additions and 1 deletions
|
@ -121,7 +121,8 @@ Following is a list of Hugo-defined variables that you can configure and their c
|
|||
pygmentsStyle: "monokai"
|
||||
# true: use pygments-css or false: color-codes directly
|
||||
pygmentsUseClasses: false
|
||||
sitemap: ""
|
||||
# default sitemap configuration map
|
||||
sitemap:
|
||||
# filesystem path to read files relative from
|
||||
source: ""
|
||||
staticdir: "static"
|
||||
|
|
|
@ -50,3 +50,13 @@ Protocol](http://www.sitemaps.org/protocol.html).
|
|||
on render. Please don't include this in the template as it's not valid HTML.*
|
||||
|
||||
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
|
||||
|
||||
## Configuring sitemap.xml
|
||||
|
||||
Defaults for `<changefreq>` and `<priority>` values can be set in the site's config file, e.g.:
|
||||
|
||||
[sitemap]
|
||||
changefreq = "monthly"
|
||||
priority = 0.5
|
||||
|
||||
The same fields can be specified in an individual page's front matter in order to override the value for that page.
|
Loading…
Reference in a new issue