if page.url contains '/en/' %}
    <li><a href="{{ site.baseurl }}{{ en_url }}" class="language-link">English</a></li>
    {% assign ja_url = url | replace: '/en/', '/ja/' %}
    {% assign ch_url = url | replace: '/en/', '/ch/' %}
    <li><a href="{{ site.baseurl }}{{ ja_url }}" class="language-link">日本語 (Japanese)</a></li>
    <li><a href="{{ site.baseurl }}{{ ch_url }}" class="language-link">中文(简体) (Chinese-Simplified)</a></li>
{% elsif page.url contains '/ja/' %}
    <li><a href="{{ site.ba