From c90c6805a271cebfe2bb639ee69021ef81e67e0f Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Fri, 17 Oct 2014 07:53:56 -0700 Subject: [PATCH] Add side margins if screen is too wide --- doc/_templates/layout.html | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/doc/_templates/layout.html b/doc/_templates/layout.html index 17aa3c5f..8c17ae90 100644 --- a/doc/_templates/layout.html +++ b/doc/_templates/layout.html @@ -3,6 +3,19 @@ {# Custom CSS overrides #} {% set bootswatch_css_custom = ['_static/cppformat.css'] %} +{%- block content %} +{{ navBar() }} +
+
+ {%- block sidebar1 %}{{ bsidebar() }}{% endblock %} +
+ {% block body %}{% endblock %} +
+ {% block sidebar2 %} {# possible location for sidebar #} {% endblock %} +
+
+{%- endblock %} + {% block footer %} {{ super() }} @@ -14,4 +27,4 @@ ga('create', 'UA-20116650-4', 'cppformat.github.io'); ga('send', 'pageview'); -{% endblock %} \ No newline at end of file +{% endblock %}