Added a sitemap.xml
This commit is contained in:
parent
8d4d5a85f1
commit
4dfbe0a50a
3 changed files with 11 additions and 1 deletions
|
@ -15,6 +15,6 @@ And of course, this site "source code" [is publicly accessible on Github too](ht
|
|||
---
|
||||
_template: open-source.html
|
||||
---
|
||||
_discoverable: no
|
||||
_discoverable: yes
|
||||
---
|
||||
title: Made with Open Source
|
||||
|
|
3
content/sitemap.xml/contents.lr
Normal file
3
content/sitemap.xml/contents.lr
Normal file
|
@ -0,0 +1,3 @@
|
|||
_template: sitemap.xml
|
||||
---
|
||||
_model: none
|
7
templates/sitemap.xml
Normal file
7
templates/sitemap.xml
Normal file
|
@ -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…
Add table
Add a link
Reference in a new issue