Skip to content

Commit ac910bb

Browse files
authored
Add document block and rename bodycontent content
1 parent 178e94a commit ac910bb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sphinx_rtd_theme/layout.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,14 +160,15 @@
160160

161161

162162
<div class="wy-nav-content">
163-
{%- block pagecontent %}
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,6 +178,7 @@
177178
</div>
178179
{% endif%}
179180
</div>
181+
{%- endblock %}
180182
{% include "footer.html" %}
181183
</div>
182184
{%- endblock %}

0 commit comments

Comments
 (0)