Skip to content

Commit

Permalink
Adds sitemap
Browse files Browse the repository at this point in the history
  • Loading branch information
mtrythall committed May 2, 2024
1 parent cfdfe45 commit 7a3b67d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/_data/site.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"domain": "https://2024.djangocon.us/",
"domain": "https://2024.djangocon.us",
"timezone": "America/New_York",
"conf_year": 2024,

Expand Down
16 changes: 16 additions & 0 deletions src/sitemap.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
permalink: /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 page.url == false or page.url contains "/presenters/" %}
{% else %}
<url>
<loc>{{ site.domain }}{{ page.url }}</loc>
<lastmod>{{ page.date | date: "%Y-%m-%d" }}</lastmod>
</url>
{% endif %}
{% endfor %}
</urlset>

0 comments on commit 7a3b67d

Please sign in to comment.