diff options
author | Dennis Eriksen <d@ennis.no> | 2023-01-20 12:06:49 +0100 |
---|---|---|
committer | Dennis Eriksen <d@ennis.no> | 2023-01-20 12:06:49 +0100 |
commit | d1d65c94b888c2959c9da799e4329161ede449ea (patch) | |
tree | 7551a0488ebd56d337a5bf22d7b5ec21a0a4a4e2 /templates/sitemap.xml | |
parent | relative links on front page (diff) | |
download | rikerz-d1d65c94b888c2959c9da799e4329161ede449ea.tar.gz |
Made Riker into a Zola-theme - Rikerz
Diffstat (limited to 'templates/sitemap.xml')
-rw-r--r-- | templates/sitemap.xml | 13 |
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> |