forked from ag_kommunikation/webseite
Merge pull request 'Add sitemap.xml generator' (#7) from sitemap into master
Reviewed-on: https://git.vebit.xyz/muli/wtf-public-website/pulls/7
This commit is contained in:
commit
a3e4d5195e
4
content/sitemap.xml/contents.lr
Normal file
4
content/sitemap.xml/contents.lr
Normal file
@ -0,0 +1,4 @@
|
||||
_template: sitemap.xml
|
||||
---
|
||||
_model: none
|
||||
_discoverable: no
|
9
templates/sitemap.xml
Normal file
9
templates/sitemap.xml
Normal file
@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||
{%- for page in [site.root] if page != this recursive %}
|
||||
{%- if not page.hide_from_global_index %}
|
||||
<url><loc>{{ page|url(external=true) }}</loc></url>
|
||||
{{- loop(page.children) }}
|
||||
{%- endif %}
|
||||
{%- endfor %}
|
||||
</urlset>
|
Loading…
Reference in New Issue
Block a user