Skip to content

If you're encountering issues with your sitemap in Google Search Console, #216

@Minsuchoi-1999

Description

@Minsuchoi-1999

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 %}

`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions