diff --git a/content/sitemap.xml/contents.lr b/content/sitemap.xml/contents.lr new file mode 100644 index 00000000..ffd5fad0 --- /dev/null +++ b/content/sitemap.xml/contents.lr @@ -0,0 +1,4 @@ +_template: sitemap.xml +--- +_model: none +_discoverable: no diff --git a/templates/sitemap.xml b/templates/sitemap.xml new file mode 100644 index 00000000..0c524e8d --- /dev/null +++ b/templates/sitemap.xml @@ -0,0 +1,9 @@ + + + {%- for page in [site.root] if page != this recursive %} + {%- if not page.hide_from_global_index %} + {{ page|url(external=true) }} + {{- loop(page.children) }} + {%- endif %} + {%- endfor %} +