From 28b72409b43cb401f5bef03747e888e1cf27262a Mon Sep 17 00:00:00 2001 From: Gareth Coles Date: Tue, 10 Jul 2018 14:53:59 +0100 Subject: All domains: sitemap.xml and robots.txt --- templates/sitemap.xml | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 templates/sitemap.xml (limited to 'templates/sitemap.xml') diff --git a/templates/sitemap.xml b/templates/sitemap.xml new file mode 100644 index 00000000..3d63d3a9 --- /dev/null +++ b/templates/sitemap.xml @@ -0,0 +1,64 @@ + + + +{% for url in urls %} + + {{ url.url }} + + {% if url.images is defined %} + {% for image in url.images %} + + {{ image.url }} + {{ image.caption }} + + {% endfor %} + {% endif %} + + {% if url.videos is defined %} + {% for video in url.videos %} + + {{ video.description }} + {{ video.title }} + + {{ video.url }} + {{ video.player_url }} + {{ video.thumbnail_url }} + + {% endfor %} + {% endif %} + + {% if url.news_items is defined %} + {% for item in url.news_items %} + + + Python Discord: {{ item.section }} + en + + + PressRelease, Blog + {{ item.date }} + {{ item.title }} + {{ ", ".join(item.keywords) }} + + {% endfor %} + {% endif %} + + {% if url.last_modified is defined %} + {{ url.last_modified }} + {% endif %} + + {% if url.change_frequency is defined %} + {{ url.change_frequency }} + {% endif %} + + {% if url.priority is defined %} + {{ "{0:.1f}".format(url.priority) }} + {% endif %} + +{% endfor %} + -- cgit v1.2.3