diff --git a/sphinx/themes/basic/localtoc.html b/sphinx/themes/basic/localtoc.html
index d761c2378..750f5daa0 100644
--- a/sphinx/themes/basic/localtoc.html
+++ b/sphinx/themes/basic/localtoc.html
@@ -8,6 +8,8 @@
:license: BSD, see LICENSE for details.
#}
{%- if display_toc %}
-
- {{ toc }}
+
{%- endif %}
diff --git a/sphinx/themes/basic/relations.html b/sphinx/themes/basic/relations.html
index c4391fe4d..db478b719 100644
--- a/sphinx/themes/basic/relations.html
+++ b/sphinx/themes/basic/relations.html
@@ -8,12 +8,16 @@
:license: BSD, see LICENSE for details.
#}
{%- if prev %}
- {{ _('Previous topic') }}
- {{ prev.title }}
+
{%- endif %}
{%- if next %}
- {{ _('Next topic') }}
- {{ next.title }}
+
{%- endif %}