diff --git a/docs/src/_templates/layout.html b/docs/src/_templates/layout.html
index cdf6b5c4a8..357a7a120b 100644
--- a/docs/src/_templates/layout.html
+++ b/docs/src/_templates/layout.html
@@ -2,7 +2,11 @@
{% block sidebartitle %}
+ {%- if logo %}
+
+ {%- else %}
+ {%- endif %}