You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 %}
`
The text was updated successfully, but these errors were encountered:
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 %}`
The text was updated successfully, but these errors were encountered: