From 7a3b67dcdebc94242e94b5fd4858b264e08072c5 Mon Sep 17 00:00:00 2001 From: Michael Trythall Date: Thu, 2 May 2024 18:20:11 -0400 Subject: [PATCH] Adds sitemap --- src/_data/site.json | 2 +- src/sitemap.html | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 src/sitemap.html diff --git a/src/_data/site.json b/src/_data/site.json index d898ef24..d8d5327b 100644 --- a/src/_data/site.json +++ b/src/_data/site.json @@ -1,5 +1,5 @@ { - "domain": "https://2024.djangocon.us/", + "domain": "https://2024.djangocon.us", "timezone": "America/New_York", "conf_year": 2024, diff --git a/src/sitemap.html b/src/sitemap.html new file mode 100644 index 00000000..d962e5e6 --- /dev/null +++ b/src/sitemap.html @@ -0,0 +1,16 @@ +--- +permalink: /sitemap.xml +eleventyExcludeFromCollections: true +--- + + + {% for page in collections.all %} + {% if page.url == false or page.url contains "/presenters/" %} + {% else %} + + {{ site.domain }}{{ page.url }} + {{ page.date | date: "%Y-%m-%d" }} + + {% endif %} + {% endfor %} +