forked from Checksig-inside/multilangsite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsitemap-en.xml
30 lines (29 loc) · 959 Bytes
/
sitemap-en.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
---
layout: null
sitemap:
exclude: 'yes'
---
<?xml version="1.0" encoding="UTF-8"?>
<urlset
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
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">
{% assign folder1 = site.pages | sort: 'sort_ranking' | reverse %}
{% for item in site.data.settings.menu['en'] %}
<url>
<loc>{{ site.url }}{{ '/' | append: item.url | relative_url}}</loc>
<lastmod>2021-01-09T09:00:00+00:00</lastmod>
<priority>1.00</priority>
</url>
{% for subitem in folder1 %}
{% if subitem.locale == 'en' and subitem.page-category == item.uid %}
<url>
<loc>{{ site.url }}{{ site.baseurl }}{{ subitem.permalink }}</loc>
<lastmod>2021-01-09T09:00:00+00:00</lastmod>
<priority>1.00</priority>
</url>
{% endif %}
{% endfor %}
{% endfor %}
</urlset>