summaryrefslogtreecommitdiffstats
path: root/templates/sitemap.xml
diff options
context:
space:
mode:
authorDennis Eriksen <d@ennis.no>2023-01-20 12:06:49 +0100
committerDennis Eriksen <d@ennis.no>2023-01-20 12:06:49 +0100
commitd1d65c94b888c2959c9da799e4329161ede449ea (patch)
tree7551a0488ebd56d337a5bf22d7b5ec21a0a4a4e2 /templates/sitemap.xml
parentrelative links on front page (diff)
downloadrikerz-d1d65c94b888c2959c9da799e4329161ede449ea.tar.gz
Made Riker into a Zola-theme - Rikerz
Diffstat (limited to 'templates/sitemap.xml')
-rw-r--r--templates/sitemap.xml13
1 files changed, 13 insertions, 0 deletions
diff --git a/templates/sitemap.xml b/templates/sitemap.xml
new file mode 100644
index 0000000..e0cfc82
--- /dev/null
+++ b/templates/sitemap.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
+ {%- for sitemap_entry in entries %}
+ {%- if not sitemap_entry.extra.hidden|default(value=false) %}
+ <url>
+ <loc>{{ sitemap_entry.permalink | escape_xml | safe }}</loc>
+ {%- if sitemap_entry.updated %}
+ <lastmod>{{ sitemap_entry.updated }}</lastmod>
+ {%- endif %}
+ </url>
+ {%- endif %}
+ {%- endfor %}
+</urlset>