Tweak sitemap whitespace

This commit is contained in:
Helen Chong 2024-09-14 21:47:25 +08:00
parent ceb766e660
commit e1bfb45496
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ eleventyExcludeFromCollections: true
--- ---
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
{% for item in collections.all -%} {%- for item in collections.all %}
<url> <url>
<loc>{{ sitemeta.siteUrl + item.url | url }}</loc> <loc>{{ sitemeta.siteUrl + item.url | url }}</loc>
<lastmod>{% if item.updated %}{{ item.updated.toISOString() }}{% else %}{{ item.date.toISOString() }}{% endif %}</lastmod> <lastmod>{% if item.updated %}{{ item.updated.toISOString() }}{% else %}{{ item.date.toISOString() }}{% endif %}</lastmod>