diff --git a/docs/en_US/_templates/layout.html b/docs/en_US/_templates/layout.html index 7ee15d7864..1c8995d0ae 100644 --- a/docs/en_US/_templates/layout.html +++ b/docs/en_US/_templates/layout.html @@ -1,7 +1,29 @@ -{% extends "!layout.html" %} +{% block sidebartitle %} + + {% if logo and theme_logo_only %} + + {% else %} + {{ project }} + {% endif %} + + {% if logo %} + {# Not strictly valid HTML, but it's the only way to display/scale it properly, without weird scripting or heaps of work #} + + {% endif %} + + + {% if theme_display_version %} + {%- set nav_version = version %} + {% if READTHEDOCS and current_version %} + {%- set nav_version = current_version %} + {% endif %} + {% if nav_version %} +
+ {{ nav_version }} +
+ {% endif %} + {% endif %} + + {% include "searchbox.html" %} -{% block sidebarlogo %} - - {%- if logo %}{%- endif %} - {% endblock %} \ No newline at end of file