Repository navigation
Expand file tree
/
Copy pathsitemap.xml
More file actions
149 lines (132 loc) · 5.02 KB
/
Copy pathsitemap.xml
File metadata and controls
149 lines (132 loc) · 5.02 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
---
layout:
---
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xhtml="http://www.w3.org/1999/xhtml"
xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">
<!-- Homepage -->
<url>
<loc>{{ site.url }}/</loc>
<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
<changefreq>daily</changefreq>
<priority>1.0</priority>
<xhtml:link rel="alternate" hreflang="en" href="{{ site.url }}/" />
<xhtml:link rel="alternate" hreflang="ru" href="{{ site.url }}/ru/" />
</url>
<!-- About page -->
<url>
<loc>{{ site.url }}/about/</loc>
<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
<changefreq>monthly</changefreq>
<priority>0.8</priority>
<xhtml:link rel="alternate" hreflang="en" href="{{ site.url }}/about/" />
<xhtml:link rel="alternate" hreflang="ru" href="{{ site.url }}/ru/about/" />
</url>
<!-- Archive page -->
<url>
<loc>{{ site.url }}/archive/</loc>
<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
<changefreq>weekly</changefreq>
<priority>0.7</priority>
<xhtml:link rel="alternate" hreflang="en" href="{{ site.url }}/archive/" />
<xhtml:link rel="alternate" hreflang="ru" href="{{ site.url }}/ru/archive/" />
</url>
<!-- Categories page -->
<url>
<loc>{{ site.url }}/categories/</loc>
<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
<changefreq>weekly</changefreq>
<priority>0.7</priority>
<xhtml:link rel="alternate" hreflang="en" href="{{ site.url }}/categories/" />
<xhtml:link rel="alternate" hreflang="ru" href="{{ site.url }}/ru/categories/" />
</url>
<!-- Tags page -->
<url>
<loc>{{ site.url }}/tags/</loc>
<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
<changefreq>weekly</changefreq>
<priority>0.7</priority>
<xhtml:link rel="alternate" hreflang="en" href="{{ site.url }}/tags/" />
<xhtml:link rel="alternate" hreflang="ru" href="{{ site.url }}/ru/tags/" />
</url>
<!-- Category pages -->
{% for category in site.categories %}
<url>
<loc>{{ site.url }}/categories/{{ category | first | slugify }}/</loc>
<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
<changefreq>weekly</changefreq>
<priority>0.6</priority>
<xhtml:link rel="alternate" hreflang="en" href="{{ site.url }}/categories/{{ category | first | slugify }}/" />
<xhtml:link rel="alternate" hreflang="ru" href="{{ site.url }}/ru/categories/{{ category | first | slugify }}/" />
</url>
{% endfor %}
<!-- Tag pages -->
{% for tag in site.tags %}
<url>
<loc>{{ site.url }}/tags/{{ tag | first | slugify }}/</loc>
<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
<xhtml:link rel="alternate" hreflang="en" href="{{ site.url }}/tags/{{ tag | first | slugify }}/" />
<xhtml:link rel="alternate" hreflang="ru" href="{{ site.url }}/ru/tags/{{ tag | first | slugify }}/" />
</url>
{% endfor %}
<!-- Blog posts -->
{% for post in site.posts %}
<url>
<loc>{{ post.url | absolute_url }}</loc>
<lastmod>{{ post.last_modified_at | default: post.date | date_to_xmlschema }}</lastmod>
<changefreq>monthly</changefreq>
<priority>0.8</priority>
<xhtml:link rel="alternate" hreflang="en" href="{{ post.url | absolute_url }}" />
<xhtml:link rel="alternate" hreflang="ru" href="{{ post.url | absolute_url | replace: '/', '/ru/' }}" />
{% if post.image %}
<image:image>
<image:loc>{{ post.image | absolute_url }}</image:loc>
<image:title>{{ post.title | xml_escape }}</image:title>
{% if post.image_alt %}
<image:caption>{{ post.image_alt | xml_escape }}</image:caption>
{% endif %}
</image:image>
{% endif %}
</url>
{% endfor %}
<!-- Static assets -->
<url>
<loc>{{ site.url }}/css/main.css</loc>
<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
<changefreq>monthly</changefreq>
<priority>0.3</priority>
</url>
<url>
<loc>{{ site.url }}/js/i18n.js</loc>
<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
<changefreq>monthly</changefreq>
<priority>0.3</priority>
</url>
<url>
<loc>{{ site.url }}/js/interactive.js</loc>
<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
<changefreq>monthly</changefreq>
<priority>0.3</priority>
</url>
<url>
<loc>{{ site.url }}/assets/i18n/en.json</loc>
<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
<changefreq>monthly</changefreq>
<priority>0.2</priority>
</url>
<url>
<loc>{{ site.url }}/assets/i18n/ru.json</loc>
<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
<changefreq>monthly</changefreq>
<priority>0.2</priority>
</url>
<url>
<loc>{{ site.url }}/manifest.json</loc>
<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
<changefreq>monthly</changefreq>
<priority>0.2</priority>
</url>
</urlset>