1 parent 8181d41 commit e1b8a52Copy full SHA for e1b8a52
1 file changed
src/site/sitemap.njk
@@ -7,7 +7,7 @@ eleventyExcludeFromCollections: true
7
{% for page in collections.all %}
8
<url>
9
<loc>{{ meta.siteBaseUrl }}{{ page.url | url }}</loc>
10
- <lastmod>{{ page.date | dateToZulu }}</lastmod>
+ <lastmod>{%if page.data.updated %}{{ page.data.updated | dateToZulu }}{%else%}{{ page.date | dateToZulu }}{%endif%}</lastmod>
11
</url>
12
{% endfor %}
13
</urlset>
0 commit comments