-
Notifications
You must be signed in to change notification settings - Fork 75
/
sitemap.xml
38 lines (32 loc) · 1.44 KB
/
sitemap.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
---
layout: null
---
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<!-- collections -->
{% assign collections = site.collections | where_exp:'collection','collection.output != false' %}
{% for collection in collections %}
{% assign docs = collection.docs | where_exp:'doc','doc.sitemap != false' | where_exp:'doc','doc.subcategory == null'%}
{% for doc in docs %}
<url>
<loc>https://docs.search-guard.com{{site.baseurl}}{{ doc.url | xml_escape }}</loc>
{% if doc.last_modified_at or doc.date %}
<lastmod>{{ doc.last_modified_at | default: doc.date | date_to_xmlschema }}</lastmod>
{% endif %}
</url>
{% for resource in doc.sitemap_resources %}
<url>
<loc>https://docs.search-guard.com{{ resource | xml_escape }}</loc>
<lastmod>{{ doc.last_modified_at | default: doc.date | date_to_xmlschema }}</lastmod>
</url>
{% endfor %}
{% endfor %}
{% assign files = collection.files %}
{% for file in files %}
<url>
<loc>https://docs.search-guard.com{{site.baseurl}}/{{ file.name }}</loc>
<lastmod>{{ file.modified_time | date_to_xmlschema }}</lastmod>
</url>
{% endfor %}
{% endfor %}
</urlset>