Commit 8131e543 authored by Elias Ojala's avatar Elias Ojala
Browse files

Added sitemap

parent dd5007d8
......@@ -6,3 +6,4 @@
* [git.lelux.fi](https://git.lelux.fi/Lelux/wiki) (origin)
* [gitlab.com](https://gitlab.com/theel0ja/wiki) (mirror)
* [github.com](https://github.com/theel0ja/lelux-wiki) (mirror, not recommended)
User-agent: ia_archiver
Disallow: /
User-agent: *
Disallow:
# Sitemap: https://wiki.lelux.fi/sitemap.xml
\ No newline at end of file
---
layout: null
sitemap:
exclude: 'yes'
---
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
{% for page in site.pages %}
{% unless page.sitemap.exclude == "yes" %}
<url>
<loc>{{ site.url }}{{ page.url | remove: "index.html" }}</loc>
{% if page.sitemap.lastmod %}
<lastmod>{{ page.sitemap.lastmod | date: "%Y-%m-%d" }}</lastmod>
{% elsif page.date %}
<lastmod>{{ page.date | date_to_xmlschema }}</lastmod>
{% else %}
<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
{% endif %}
{% if page.sitemap.changefreq %}
<changefreq>{{ page.sitemap.changefreq }}</changefreq>
{% else %}
<!-- <changefreq>daily</changefreq> -->
{% endif %}
{% if page.sitemap.priority %}
<priority>{{ page.sitemap.priority }}</priority>
{% else %}
<!-- <priority>0.5</priority> -->
{% endif %}
</url>
{% endunless %}
{% endfor %}
</urlset>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment