Skip to content

Commit

Permalink
remove .html from sitemap urls for google search
Browse files Browse the repository at this point in the history
  • Loading branch information
rushatgabhane committed Apr 19, 2024
1 parent 188b68d commit 307508e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ layout:
{% assign pages = site.html_pages | where_exp:'doc','doc.sitemap != false' | where_exp:'doc','doc.url != "/404.html"' %}
{% for page in pages %}
<url>
<loc>{{ page.url | replace:'/index.html','/' | absolute_url | xml_escape }}</loc>
<loc>{{ page.url | replace:'/index.html','/' | absolute_url | xml_escape | replace:'.html','' }}</loc>
</url>
{% endfor %}
</urlset>

0 comments on commit 307508e

Please sign in to comment.