fix: sitemap dates
This commit is contained in:
parent
5177c3688e
commit
928711aa54
4 changed files with 37 additions and 34 deletions
|
@ -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>
|
||||
|
|
Reference in a new issue