Merge pull request #1302 from ousttrue/doc/switch_for_rtd

rtdテンプレート向けの言語スイッチリンク
This commit is contained in:
PoChang007 2021-10-13 18:56:57 +09:00 committed by GitHub
commit c21b8d76ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,13 +1,11 @@
{% extends "!layout.html" %}
{% block sidebarlogo %}
<ul>
{% block sidebartitle %}
{%- if language != "en" %}
<li><a href="{{ pathto('../en/', 1) }}{{ pathto(pagename, 0, '.') }}">English</a></li>
<a href="{{ pathto('../en/', 1) }}{{ pathto(pagename, 0, '.') }}">English</a>
{%- endif %}
{%- if language != "ja" %}
<li><a href="{{ pathto('../ja/', 1) }}{{ pathto(pagename, 0, '.') }}">日本語</a></li>
<a href="{{ pathto('../ja/', 1) }}{{ pathto(pagename, 0, '.') }}">日本語</a>
{%- endif %}
</ul>
{{ super() }}
{% endblock %}