Skip to content

Commit 6d0136f

Browse files
authored
Merge pull request #577 from rtfd/content-block
Add a block around the page content
2 parents 60fff9c + 38c46ce commit 6d0136f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

sphinx_rtd_theme/layout.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,15 +159,16 @@
159159
</nav>
160160

161161

162-
{# PAGE CONTENT #}
163162
<div class="wy-nav-content">
163+
{%- block content %}
164164
{% if theme_style_external_links|tobool %}
165165
<div class="rst-content style-external-links">
166166
{% else %}
167167
<div class="rst-content">
168168
{% endif %}
169169
{% include "breadcrumbs.html" %}
170170
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
171+
{%- block document %}
171172
<div itemprop="articleBody">
172173
{% block body %}{% endblock %}
173174
</div>
@@ -177,8 +178,10 @@
177178
</div>
178179
{% endif%}
179180
</div>
181+
{%- endblock %}
180182
{% include "footer.html" %}
181183
</div>
184+
{%- endblock %}
182185
</div>
183186

184187
</section>

0 commit comments

Comments
 (0)