From d70a9ab22914fd17283c08c97f6973fcb6afa8e2 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Wed, 11 Sep 2024 20:06:20 +0100 Subject: [PATCH] Add sitemap.xml --- source/sitemap.xml.twig | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 source/sitemap.xml.twig diff --git a/source/sitemap.xml.twig b/source/sitemap.xml.twig new file mode 100644 index 00000000..a7ce5e8d --- /dev/null +++ b/source/sitemap.xml.twig @@ -0,0 +1,23 @@ +--- +permalink: /sitemap.xml +use: + - daily_emails + - pages + - podcast_episodes + - posts + - presentations +default_priorities: + posts: '0.2' +--- + + + + {% for content_type, content in data %} + {% for item in content %} + + {{ site.url }}{{ item.url|trim('/', 'right') }} + {{ page.default_priorities[content_type]|default('0.5') }} + + {% endfor %} + {% endfor %} +