Sitemap error

I have an error with a sitemap, this is what appears in the index file:
https://www.casanospam.com/index.xml
I think this line: <atom:link href="/index.xml" rel=“self” type=“application/rss+xml”/>
should contain the full url of the website.
And google search console is giving the following error:

It looks like it is missing the baseURL but it is already inserted in the config.yaml file.
This is the content of the config.yaml file:
baseURL: ‘https://www.casanospam.com/
title: Bigspring Light
theme: bigspring-light
paginate: ‘3’
summaryLength: ‘15’
disqusShortname: ‘’
googleAnalytics: ‘’
markup:
goldmark:
renderer:
unsafe: yes

How can I fix that?

Try configuring the sitemap in your config.yaml file and share that instead in GSC (https://your-site.com/sitemap.xml). Also, add this between <head></head> if necessary <link rel="sitemap" type="application/xml" title="Sitemap" href="{{ "sitemap.xml" | absURL }}">

This is not a sitemap:

https://www.casanospam.com/index.xml

It is an RSS feed.

Please clarify your question.

This is the link for the sitemap:
https://www.casanospam.com/sitemap.xml

which on google search console returns an error of invalid url

Please post a link to the public repository for your site.

this is the repository:

When I build your site locally, this is what is rendered in public/sitemap.xml

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <sitemap>
    <loc>https://www.casanospam.com/it/sitemap.xml</loc>
  </sitemap>
  <sitemap>
    <loc>https://www.casanospam.com/en/sitemap.xml</loc>
  </sitemap>
</sitemapindex>

The problem is in your Netlify configuration:

HUGO_BASEURL = "/"

thank you. That solved the issue

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.