Browse Source

sitemap added

master
_ahmedbilal 2 years ago
parent
commit
cfdf9e68bb
  1. 3
      content/sitemap.xml/contents.lr
  2. 7
      templates/sitemap.xml

3
content/sitemap.xml/contents.lr

@ -0,0 +1,3 @@
_template: sitemap.xml
---
_model: none

7
templates/sitemap.xml

@ -0,0 +1,7 @@
<?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 %}
<url><loc>{{ page|url(external=true) }}</loc></url>
{{- loop(page.children) }}
{%- endfor %}
</urlset>
Loading…
Cancel
Save