aboutsummaryrefslogblamecommitdiff
path: root/sitemap.xml
blob: 1c17a14fee94c5389ca45ae2e6262f2ede8ad259 (plain) (tree)




























                                                                                                             
---
---
<?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>weekly</changefreq>
    </url>
  {% endfor %}

  {% for page in site.pages %}
    <url>
      <loc>{{ site.base }}{{ 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>weekly</changefreq>
    </url>
  {% endfor %}
</urlset>