-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsitemap.xml
More file actions
35 lines (34 loc) · 1.34 KB
/
Copy pathsitemap.xml
File metadata and controls
35 lines (34 loc) · 1.34 KB
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
---
---
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
{% for post in site.posts %}
<url>
<loc>{{ site.url }}{{ post.url | remove: 'index.html' }}</loc>
<lastmod>{{ post.date | date_to_xmlschema }}</lastmod>
<changefreq>weekly</changefreq>
<priority>0.8</priority>
</url>
{% endfor %}
{% for page in site.pages %}
{% assign clean = page.url | remove: 'index.html' %}
{% assign skip = false %}
{% if clean == '/404/' or clean == '/404.html' %}{% assign skip = true %}{% endif %}
{% if clean contains '/maps/find/index_old' %}{% assign skip = true %}{% endif %}
{% if clean contains '/maps/findb/' %}{% assign skip = true %}{% endif %}
{% if clean contains '/graficas/palabras-requerimiento-whatsapp' %}{% assign skip = true %}{% endif %}
{% if clean == '/tags/' %}{% assign skip = true %}{% endif %}
{% if page.layout != nil and page.layout != 'feed' and skip == false %}
<url>
<loc>{{ site.url }}{{ clean }}</loc>
{% if clean == '/' %}
<changefreq>weekly</changefreq>
<priority>1.0</priority>
{% else %}
<changefreq>monthly</changefreq>
<priority>0.5</priority>
{% endif %}
</url>
{% endif %}
{% endfor %}
</urlset>