-
Notifications
You must be signed in to change notification settings - Fork 30
/
sitemap.xml
34 lines (34 loc) · 1.3 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
---
---
<?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 page in site.pages %} {% if page.lang == "fr" %}
<url>
<loc>{{ site.url }}{{ site.baseurl }}{{ page.url }}</loc>
{% include page_url %}
{% if page_url_en %}
<xhtml:link rel="alternate" hreflang="en" href="{{ site.url }}{{ site.baseurl }}{{ page_url_en }}" />
{% endif %}
{% if page_url_es %}
<xhtml:link rel="alternate" hreflang="es" href="{{ site.url }}{{ site.baseurl }}{{ page_url_es }}" />
{% endif %}
<changefreq>monthly</changefreq>
<priority>1.0</priority>
</url>
{% endif %}{% endfor %}
{% for page in site.posts %} {% if page.lang == "fr" %}
<url>
<loc>{{ site.url }}{{ site.baseurl }}{{ page.url }}</loc>
{% include post_url %}
{% if page_url_en %}
<xhtml:link rel="alternate" hreflang="en" href="{{ site.url }}{{ site.baseurl }}{{ page_url_en }}" />
{% endif %}
{% if page_url_es %}
<xhtml:link rel="alternate" hreflang="es" href="{{ site.url }}{{ site.baseurl }}{{ page_url_es }}" />
{% endif %}
<lastmod>{{ page.date | date_to_xmlschema }}</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
{% endif %} {% endfor %}
</urlset>