Skip to content

Commit

Permalink
fix date in sitemap
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-ooi committed Nov 4, 2023
1 parent fa2a093 commit dec9f44
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 @@ -11,6 +11,6 @@ eleventyExcludeFromCollections: true
)%}
<url>
<loc>https://paulooi.ca{{ page.url | url }}</loc>
<lastmod>{{ page.date.getFullYear() }}-{{ page.date.getMonth() }}-{{ page.date.getDate() }}</lastmod>
<lastmod>{{ page.date.getFullYear() }}-{{ ("0" + page.date.getMonth()).slice(-2) }}-{{ ("0" + page.date.getDate()).slice(-2) }}</lastmod>
</url>{% endif %}{% endfor %}
</urlset>

0 comments on commit dec9f44

Please sign in to comment.