Closed somnathrakshit closed 3 years ago
Hello, The sitemap is automatically generated by Hugo when you're building your website: see here. It should be accessible at https://your-site.dev/sitemap.xml. Hope that helps.
I tried generating my own website and that doesn't work. I also tried the demo site, which doesn't seem to work as well. demo site: https://themes.gohugo.io/theme/hugo-researcher/sitemap.xml my site: https://somnathrakshit.github.io/sitemap.xml
Mmh that's weird, I'm also using the theme for my website and the sitemap is there: https://oroques.dev/sitemap.xml.
Try updating the theme to latest commit, I've recently made change to links due to #5 maybe that's the issue. Note that if you had a link to a static content such as [img](picture.png)
now it should be changed to [img](/picture.png)
.
I think I understand what's happening. Just removed sitemap from this line in config.toml and it's working now.
disableKinds = ["taxonomy", "term", "robotsTXT"]
Good to know! I've updated the example website with your fix.
Is it possible to automatically generate the sitemap.xml file? It will be useful since all major search engines rely on sitemap file for indexing.