---
layout: null
sitemap: false
---
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="{{ '/sitemap.xsl' | relative_url }}"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>{{ site.url }}/</loc>
    <lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
    <changefreq>daily</changefreq>
    <priority>1.0</priority>
  </url>

  {% assign language_homes = '/en/,/ja/' | split: ',' %}
  {% for home in language_homes %}
  <url>
    <loc>{{ site.url }}{{ home }}</loc>
    <lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
    <changefreq>daily</changefreq>
    <priority>0.8</priority>
  </url>
  {% endfor %}

  {% for post in site.posts %}
  {% assign post_lang = post.lang | default: site.default_lang %}

  {% if post_lang == site.default_lang %}
    {% assign post_url = post.url | remove: 'index.html' %}
  {% elsif post_lang == 'en' %}
    {% assign post_url = '/en' | append: post.url | remove: 'index.html' %}
  {% elsif post_lang == 'ja' %}
    {% assign post_url = '/ja' | append: post.url | remove: 'index.html' %}
  {% else %}
    {% assign post_url = '/' | append: post_lang | append: post.url | remove: 'index.html' %}
  {% endif %}

  <url>
    <loc>{{ site.url }}{{ post_url }}</loc>
    {% if post.last_modified_at %}<lastmod>{{ post.last_modified_at | date_to_xmlschema }}</lastmod>
    {% elsif post.date %}<lastmod>{{ post.date | date_to_xmlschema }}</lastmod>
    {% endif %}
    <changefreq>monthly</changefreq>
    <priority>0.9</priority>
  </url>
  {% endfor %}

  {% for tab in site.tabs %}
  {% assign tab_lang = tab.lang | default: site.default_lang %}
  {% if tab_lang == site.default_lang %}
    {% assign tab_url = tab.url | remove: 'index.html' %}
  {% else %}
    {% assign tab_url = '/' | append: tab_lang | append: tab.url | remove: 'index.html' %}
  {% endif %}
  <url>
    <loc>{{ site.url }}{{ tab_url }}</loc>
    {% if tab.last_modified_at %}<lastmod>{{ tab.last_modified_at | date_to_xmlschema }}</lastmod>
    {% else %}<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
    {% endif %}
    <changefreq>monthly</changefreq>
    <priority>0.7</priority>
  </url>
  {% endfor %}

  {% assign hub_urls = '/en/archives/,/en/categories/,/en/tags/,/ja/archives/,/ja/categories/,/ja/tags/' | split: ',' %}
  {% for hub_url in hub_urls %}
  <url>
    <loc>{{ site.url }}{{ hub_url }}</loc>
    <lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
    <changefreq>weekly</changefreq>
    <priority>0.6</priority>
  </url>
  {% endfor %}
</urlset>
