From 3a5fd41b31474fee977f4ce41e454b9bd96d0ff8 Mon Sep 17 00:00:00 2001 From: Leo Shaw Date: Fri, 27 Nov 2015 11:44:58 +0000 Subject: [PATCH] Add a body_begin block at the start of This makes it easy to add a cookie banner or similar at the top of the page, particularly when JS is disabled and you can't insert the banner dynamically. --- sphinx_rtd_theme/layout.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sphinx_rtd_theme/layout.html b/sphinx_rtd_theme/layout.html index 44978c96..8a1de1bc 100644 --- a/sphinx_rtd_theme/layout.html +++ b/sphinx_rtd_theme/layout.html @@ -81,6 +81,8 @@ + {% block body_begin %} + {% endblock %}
{# SIDE NAV, TOGGLES ON MOBILE #}