Skip to content

Commit 178e94a

Browse files
authored
Add a block around the page content
This can be used to easily write custom content pages
1 parent 24a7000 commit 178e94a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sphinx_rtd_theme/layout.html

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

161161

162-
{# PAGE CONTENT #}
163162
<div class="wy-nav-content">
163+
{%- block pagecontent %}
164164
{% if theme_style_external_links|tobool %}
165165
<div class="rst-content style-external-links">
166166
{% else %}
@@ -179,6 +179,7 @@
179179
</div>
180180
{% include "footer.html" %}
181181
</div>
182+
{%- endblock %}
182183
</div>
183184

184185
</section>

0 commit comments

Comments
 (0)