blob: 050bdb4d5ae6544621a38a4ad769e26dff5db377 (
about) (
plain) (
blame)
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
|
---
---
<?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">
{% for post in site.posts %}
<url>
<loc>{{ site.url }}{{ post.url }}</loc>
{% assign versions=site.posts | where:"ref", post.ref %}
{% for version in versions %}
<xhtml:link rel="alternate" hreflang="{{ version.lang }}" href="{{ site.url }}{{ version.url }}" />
{% endfor %}
<lastmod>{{ post.date | date_to_xmlschema }}</lastmod>
<changefreq>monthly</changefreq>
</url>
{% endfor %}
{% for page in site.pages %}
<url>
<loc>{{ site.url }}{{ page.url }}</loc>
{% if page.ref != nil %}
{% assign versions=site.pages | where:"ref", page.ref %}
{% for version in versions %}
<xhtml:link rel="alternate" hreflang="{{ version.lang }}" href="{{ site.url }}{{ version.url }}" />
{% endfor %}
{% endif %}
<changefreq>monthly</changefreq>
</url>
{% endfor %}
{% for pastebin in site.pastebins %}
<url>
<loc>{{ site.url }}{{ pastebin.url }}</loc>
<changefreq>yearly</changefreq>
</url>
{% endfor %}
{% for til in site.tils %}
<url>
<loc>{{ site.url }}{{ til.url }}</loc>
{% assign versions=site.tils | where:"ref", til.ref %}
{% for version in versions %}
<xhtml:link rel="alternate" hreflang="{{ version.lang }}" href="{{ site.url }}{{ version.url }}" />
{% endfor %}
<changefreq>monthly</changefreq>
</url>
{% endfor %}
{% for slide in site.slides %}
<url>
<loc>{{ site.url }}{{ slide.url }}</loc>
{% assign versions=site.slides | where:"ref", slide.ref %}
{% for version in versions %}
<xhtml:link rel="alternate" hreflang="{{ version.lang }}" href="{{ site.url }}{{ version.url }}" />
{% endfor %}
<changefreq>monthly</changefreq>
</url>
{% endfor %}
</urlset>
|