pupupu

simple static CMS for crappy servers
git clone https://git.ce9e.org/pupupu.git

commit
47fc7536c23d0a02e4527cc6ebc46f2c8777dc5b
parent
c40c046368100ec75757cd8b934488be8ff0088c
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2018-10-25 10:55
add default sitemap template

Diffstat

A themes/default/sitemap.xml 15 +++++++++++++++

1 files changed, 15 insertions, 0 deletions


diff --git a/themes/default/sitemap.xml b/themes/default/sitemap.xml

@@ -0,0 +1,15 @@
   -1     1 <?xml version="1.0" encoding="UTF-8"?>
   -1     2 <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
   -1     3     {% for path in pupupu.getPages() %}
   -1     4         {% set p = pupupu.getYaml(path) %}
   -1     5         <url>
   -1     6             <loc>{{ page.root }}{{ path }}</loc>
   -1     7             {% if p.changefreq %}
   -1     8                 <changefreq>{{ p.changefreq }}</changefreq>
   -1     9             {% endif %}
   -1    10             {% if p.priority %}
   -1    11                 <priority>{{ p.priority }}</priority>
   -1    12             {% endif %}
   -1    13         </url>
   -1    14     {% endfor %}
   -1    15 </urlset>