fixed bug with ru-en papers

This commit is contained in:
arcan1s
2014-01-17 14:46:37 +04:00
parent a3cfb820aa
commit 2718a25b8f
3 changed files with 13 additions and 3 deletions

View File

@ -41,10 +41,18 @@
{% endif %}
{% if page.category == "ru" %}
<small>Расположено на GitHub Pages. <a href="/ru/authors">Авторы</a></small></p>
<p><a href="{{ page.url | replace: '/ru/', '/' }}"><img src="/resources/en.png"></a></p>
{% if page.type == "paper" %}
<p><a href="{{ page.url | replace: '/ru/', '/en/' }}"><img src="/resources/en.png"></a></p>
{% else %}
<p><a href="{{ page.url | replace: '/ru/', '/' }}"><img src="/resources/en.png"></a></p>
{% endif %}
{% else %}
<small>Hosted on GitHub Pages. <a href="/authors">Authors</a></small></p>
<p><a href="/ru{{ page.url }}"><img src="/resources/ru.png"></a></p>
{% if page.type == "paper" %}
<p><a href="{{ page.url | replace: '/en/', '/ru/' }}"><img src="/resources/en.png"></a></p>
{% else %}
<p><a href="/ru{{ page.url }}"><img src="/resources/ru.png"></a></p>
{% endif %}
{% endif %}
</footer>
</div>