hexo-generator-sitemap icon indicating copy to clipboard operation
hexo-generator-sitemap copied to clipboard

Wrong path for Default Sitemap

Open navjotjsingh opened this issue 3 years ago • 1 comments

The default path in the documentation/configuration file should be

path: /sitemap.xml

Without using any /, the URL that generates in the header is http://example.comsitemap.xml.

navjotjsingh avatar Mar 26 '21 14:03 navjotjsingh

in _config.yml, root should be set as '/'

related code:

https://github.com/hexojs/hexo-generator-sitemap/blob/master/lib/rel.js#L10

related doc: https://github.com/hexojs/hexo-util#url_forpath-option

uiolee avatar Apr 06 '23 12:04 uiolee