getgrav / grav-plugin-sitemap

Grav Sitemap Plugin
https://getgrav.org
MIT License
42 stars 42 forks source link

Invalid root element, missing trailing slash #87

Closed NicoHood closed 3 years ago

NicoHood commented 3 years ago

See https://github.com/getgrav/grav/issues/3127

Tl;dr: The homepage should be https://homepage.com/, but currently is https://homepage.com. This should be fixed in Grav, but the plugin is affected.

NicoHood commented 3 years ago

Temporary workaround:

# TODO workaround for https://github.com/getgrav/grav-plugin-sitemap/issues/87
ignores:
  - '/'
additions:
  -
    location: /
    lastmod: '2021-01-06'
    changefreq: daily
    priority: 1.0
rhukster commented 3 years ago

as you say this is a grav issue, we're just using canonical() in sitemap.