mirror of
https://github.com/skoelle/moonweb-site.git
synced 2026-09-18 01:10:25 +00:00
- sitemap.njk: remove site.pathPrefix (page.url already includes it in Eleventy v3) - base.njk: prefix CSS paths with site.pathPrefix so sub-sites load their own theme
14 lines
507 B
Plaintext
14 lines
507 B
Plaintext
<?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.url.includes("404") %}
|
|
<url>
|
|
<loc>{{ site.url }}{{ page.url }}</loc>
|
|
<lastmod>{{ page.date | date }}</lastmod>
|
|
<changefreq>{% if page.url == "/" %}weekly{% else %}monthly{% endif %}</changefreq>
|
|
<priority>{% if page.url == "/" %}1.0{% elif parent %}0.8{% else %}0.7{% endif %}</priority>
|
|
</url>
|
|
{%- endif %}
|
|
{%- endfor %}
|
|
</urlset>
|