-
Notifications
You must be signed in to change notification settings - Fork 0
/
sitemap.xml
59 lines (57 loc) · 1.99 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
---
layout: null
---
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="https://www.sitemaps.org/schemas/sitemap/0.9">
{% for post in site.posts %}
<url>
<loc>{{ site.url | replace: "http://", "https://" }}{{post.url}}</loc>
<lastmod>{{post.date | date: "%Y-%m-%d"}}</lastmod>
<changefreq>yearly</changefreq>
<priority>0.5</priority>
</url>
{% endfor %}
{% for page in site.pages %}
{% if page.layout != nil %}
{% if page.layout != 'redirect' %}
{% if page.url != '/404.md' %}
{% if page.name == 'index.md' %}
<url>
<loc>{{ site.url | replace: "http://", "https://" }}{{page.url}}</loc>
<lastmod>{{ site.time | date: "%Y-%m-%d" }}</lastmod>
<priority>1.0</priority>
</url>
{% elsif page.name == 'contactar.md' %}
<url>
<loc>{{ site.url | replace: "http://", "https://" }}{{page.url}}</loc>
<lastmod>{{ site.time | date: "%Y-%m-%d" }}</lastmod>
<priority>0.9</priority>
</url>
{% else %}
{% if page.url != '/404' %}
<url>
<loc>{{ site.url | replace: "http://", "https://" }}{{page.url}}</loc>
<lastmod>{{ site.time | date: "%Y-%m-%d" }}</lastmod>
{% if page.priority %}
<priority>{{ page.priority }}</priority>
{% else %}
<priority>0.5</priority>
{% endif %}
</url>
{% endif %}
{% endif %}
{% endif %}
{% endif %}
{% endif %}
{% endfor %}
{% for file in site.static_files %}
{% if file.extname == ".md" and file.name != "README.md" and file.name != "index.md" and file.name != "404.md" %}
<url>
<loc>{{ site.url | replace: "http://", "https://" }}{{file.path}}</loc>
<lastmod>{{ file.modified_time | date: "%Y-%m-%d" }}</lastmod>
<changefreq>yearly</changefreq>
<priority>0.5</priority>
</url>
{% endif %}
{% endfor %}
</urlset>