Shorter link

This commit is contained in:
Ivan Blinkov 2018-02-21 19:43:26 +03:00
parent c055fd6fb5
commit 8a7d31ef27

View File

@ -8,15 +8,15 @@
<script type="text/javascript">
if (window.location.pathname.indexOf('/ru/') >= 0) {
if (window.location.pathname.indexOf('/single/') >= 0){
document.write("<a href=\"{{ base_url }}/../index.html\" class=\"md-nav__link md-nav__link--active\">Многостраничная версия документации</a>")
document.write("<a href=\"{{ base_url }}/../index.html\" class=\"md-nav__link md-nav__link--active\">Многостраничная версия</a>")
}else{
document.write("<a href=\"{{ base_url }}/single/index.html\" class=\"md-nav__link md-nav__link--active\">Одностраничная версия документации</a>")
document.write("<a href=\"{{ base_url }}/single/index.html\" class=\"md-nav__link md-nav__link--active\">Одностраничная версия</a>")
}
}else{
if (window.location.pathname.indexOf('/single/') >= 0){
document.write("<a href=\"{{ base_url }}/../index.html\" class=\"md-nav__link md-nav__link--active\">Multi page version of the document</a>")
document.write("<a href=\"{{ base_url }}/../index.html\" class=\"md-nav__link md-nav__link--active\">Multi page version</a>")
}else{
document.write("<a href=\"{{ base_url }}/single/index.html\" class=\"md-nav__link md-nav__link--active\">Single page version of the document</a>")
document.write("<a href=\"{{ base_url }}/single/index.html\" class=\"md-nav__link md-nav__link--active\">Single page version</a>")
}
}
</script>