fix: sitemap dates

This commit is contained in:
Cory Dransfeldt 2024-07-19 09:27:55 -07:00
parent 5177c3688e
commit 928711aa54
No known key found for this signature in database
4 changed files with 37 additions and 34 deletions

View file

@ -7,7 +7,7 @@ eleventyExcludeFromCollections: true
{% for page in collections.siteMap %}
<url>
<loc>{{ globals.url }}{{ page.url }}</loc>
<lastmod>{{ page.date | date: '%Y-%m-%d' }}</lastmod>
<lastmod>{{ page.date | date: '%Y-%m-%dT%H:%M:%S%:z' }}</lastmod>
<changefreq>{% if page.data.changeFreq %}{{ page.data.changeFreq }}{% else %}monthly{% endif %}</changefreq>
<priority>{% if page.data.priority %}{{ page.data.priority }}{% else %}0.5{% endif %}</priority>
</url>