forked from Hackndo/en.hackndo.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsitemap.xml
More file actions
49 lines (45 loc) · 1.33 KB
/
sitemap.xml
File metadata and controls
49 lines (45 loc) · 1.33 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
---
layout: null
sitemap:
exclude: 'yes'
---
<?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>
{% if post.translation %}
{% for lang in post.translation %}
<xhtml:link
rel="alternate"
hreflang="{{ lang }}"
href="https://{{ lang }}.hackndo.com{{ post.url }}"/>
{% endfor %}
<xhtml:link
rel="alternate"
hreflang="en"
href="{{ site.url }}{{ post.url }}"/>
{% endif %}
{% if post.sitemap.lastmod %}
<lastmod>{{ post.sitemap.lastmod | date: "%Y-%m-%d" }}</lastmod>
{% elsif post.date %}
<lastmod>{{ post.date | date_to_xmlschema }}</lastmod>
{% else %}
<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
{% endif %}
</url>
{% endfor %}
<url>
<loc>https://en.hackndo.com/</loc>
<xhtml:link
rel="alternate"
hreflang="en"
href="https://en.hackndo.com/"/>
<xhtml:link
rel="alternate"
hreflang="fr"
href="https://beta.hackndo.com/"/>
<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
</url>
</urlset>