Hugo: Sitemap.xml forces homepage to priority zero, even if a different default is set

Created on 27 Jul 2015  路  5Comments  路  Source: gohugoio/hugo

See http://gohugo.io/sitemap.xml for an example:

<url>
<loc>http://gohugo.io/</loc>
<lastmod>2015-07-21T10:00:00+00:00</lastmod>
<priority>0</priority>
</url>

The homepage priority is always 0, even if a different value is set in the config file, e.g.:

[sitemap]
  priority = "0.5"

(As an aside, the sitemap config setting is not documented anywhere, the configuration page mentions it but doesn't define it).

Bug Docs

All 5 comments

As an aside: Documentation fixes are always welcome.

I didn't even know there were a sitemap config :=)

Once I have better understanding of what it's supposed to do, I'm happy to post a documentation update. For now my understanding consists solely in what I've grepped out of the codebase, so I was hesitant to do so.

Posted https://github.com/spf13/hugo/pull/1332 to improve the sitemaps docs.

This has popped up again in recent versions.

@aureooms, then open a new issue. Please don't comment on issues that have been closed for a year.

Was this page helpful?
0 / 5 - 0 ratings