for Google Search Console, my sitemap has errors:
this is my sitemap: https://www.nicolacantalupo.it/sitemap.xml
What should I do to correct it?
for Google Search Console, my sitemap has errors:
this is my sitemap: https://www.nicolacantalupo.it/sitemap.xml
What should I do to correct it?
First step: let us know if you use your own sitemap template. If yes, then post it.
Second step: make the repository public so we can see what the issue is.
I think you might just have no baseUrl
defined.
no. I’m using the Hugo’s sitemap template.
Yes, as you could see from the repository, it’s set up like this: baseurl = "/"
how should it be instead?
Ps. is it worth adding these lines to the config.toml
file?
[sitemap]
changefreq = “monthly”
filename = “sitemap.xml”
priority = 0.5
how should it be instead?
https://www.nicolacantalupo.it/
I think the sitemap config you posted is the default configuration, so you can ignore those points. If you want to change them then put them into the config.
@davidsneighbour
I did not understand why in the sitemap there is this URL: https://www.nicolacantalupo.it/tech/
how can I delete it?
You have a tech.md file here:
Why would you expect it not to be included?
You’re right. but why does the URL return 404 error?
It does not get created. I don’t really see why. It might be because your single.html and list.html in layouts/_default are empty. I would expect Hugo to throw some kind of notice about that or create empty files.
If you want the hide content that should exist from the sitemap you will need to create your own sitemap template, see the following link:
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.