fix asset paths

This commit is contained in:
Joshua Seigler 2025-06-29 14:47:50 -04:00
parent 5195ee7acd
commit 42ac9ee2b6
3 changed files with 11 additions and 7 deletions

View file

@ -1,15 +1,15 @@
---
permalink: /sitemap.xml
permalink: /assets/sitemap.xml
eleventyExcludeFromCollections: true
---
<?xml version="1.0" encoding="utf-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
{% for page in collections.all %}
{% if not page.data.draft and page.url %}
{%- for page in collections.all -%}
{%- if not page.data.draft and page.url %}
<url>
<loc>{{ site.url }}{{ page.url | url }}</loc>
<lastmod>{{ page.date.toISOString() }}</lastmod>
</url>
{% endif %}
{% endfor %}
{%- endif -%}
{%- endfor %}
</urlset>