Skip to content

Commit

Permalink
correct date format in sitemap
Browse files Browse the repository at this point in the history
  • Loading branch information
surajwate committed Sep 8, 2024
1 parent ee3c8fe commit 5827895
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sitemap.njk
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ permalink: /sitemap.xml
{% for page in collections.all %}
<url>
<loc>{{ page.url | url }}</loc>
<lastmod>{{ page.date | readableDate("yyyy-MM-dd") }}</lastmod>
<lastmod>{{ page.date.toISOString().split('T')[0] }}</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
Expand Down

0 comments on commit 5827895

Please sign in to comment.