ojroques / hugo-researcher

A simple resume theme for Hugo
GNU General Public License v3.0
229 stars 130 forks source link

sitemap absent #6

Closed somnathrakshit closed 3 years ago

somnathrakshit commented 3 years ago

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.

ojroques commented 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.

somnathrakshit commented 3 years ago

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

ojroques commented 3 years ago

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).

somnathrakshit commented 3 years ago

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"]

ojroques commented 3 years ago

Good to know! I've updated the example website with your fix.