diff --git a/sphinx/themes/basic/layout.html b/sphinx/themes/basic/layout.html
index 12614876a..4c0ebd658 100644
--- a/sphinx/themes/basic/layout.html
+++ b/sphinx/themes/basic/layout.html
@@ -35,10 +35,10 @@
{%- if not loop.first %}{{ reldelim2 }}{% endif %}
{%- endfor %}
{%- block rootrellink %}
-
{{ shorttitle|e }}{{ reldelim1 }}
+ {{ shorttitle|e }}{{ reldelim1 }}
{%- endblock %}
{%- for parent in parents %}
- {{ parent.title }}{{ reldelim1 }}
+ {{ parent.title }}{{ reldelim1 }}
{%- endfor %}
{%- block relbaritems %} {% endblock %}
diff --git a/sphinx/themes/bizstyle/static/bizstyle.js_t b/sphinx/themes/bizstyle/static/bizstyle.js_t
index dfa900904..6cb9a0f61 100644
--- a/sphinx/themes/bizstyle/static/bizstyle.js_t
+++ b/sphinx/themes/bizstyle/static/bizstyle.js_t
@@ -12,7 +12,7 @@
$(document).ready(function(){
if (navigator.userAgent.indexOf('iPhone') > 0 ||
navigator.userAgent.indexOf('Android') > 0) {
- $("div.related ul li:not(.right) a").text("Top");
+ $("li.nav-item-0 a").text("Top");
}
$("div.related:first ul li:not(.right) a").slice(1).each(function(i, item){
@@ -33,11 +33,9 @@ $(document).ready(function(){
$(window).resize(function(){
if ($(window).width() <= 776) {
- $("div.related:first ul li:not(.right):first a").text("Top");
- $("div.related:last ul li:not(.right):first a").text("Top");
+ $("li.nav-item-0 a").text("Top");
}
else {
- $("div.related:first ul li:not(.right):first a").text("{{ shorttitle|e }}");
- $("div.related:last ul li:not(.right):first a").text("{{ shorttitle|e }}");
+ $("li.nav-item-0 a").text("{{ shorttitle|e }}");
}
});