Skip to content

Commit 7a3b67d

Browse files
committed
Adds sitemap
1 parent cfdfe45 commit 7a3b67d

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

src/_data/site.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"domain": "https://2024.djangocon.us/",
2+
"domain": "https://2024.djangocon.us",
33
"timezone": "America/New_York",
44
"conf_year": 2024,
55

src/sitemap.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
permalink: /sitemap.xml
3+
eleventyExcludeFromCollections: true
4+
---
5+
<?xml version="1.0" encoding="utf-8"?>
6+
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
7+
{% for page in collections.all %}
8+
{% if page.url == false or page.url contains "/presenters/" %}
9+
{% else %}
10+
<url>
11+
<loc>{{ site.domain }}{{ page.url }}</loc>
12+
<lastmod>{{ page.date | date: "%Y-%m-%d" }}</lastmod>
13+
</url>
14+
{% endif %}
15+
{% endfor %}
16+
</urlset>

0 commit comments

Comments
 (0)