Good afternoon,
If you're encountering issues with your sitemap in Google Search Console, I'd like to share a solution that might help.
Initially, I had a standard sitemap file. However, upon submitting it to Google Search Console, I received an error message stating that the sitemap file was invalid. Despite numerous attempts to address this @@issue, I finally found a solution.
If you're facing a similar problem, you might consider rewriting your sitemap.xml with the following code:
`
{% for post in site.posts %}
{{ site.url }}{{ post.url | remove: 'index.html' }}
{% endfor %}
{% for page in site.pages %}
{% if page.layout != nil %}
{% if page.layout != 'feed' %}
<url>
<loc>{{ site.url }}{{ page.url | remove: 'index.html' }}</loc>
</url>
{% endif %}
{% endif %}
{% endfor %}
`