Access content of extended block properly (block.Super instead of super()) (#7026)
This commit is contained in:
@@ -12,14 +12,14 @@
|
|||||||
{# don't include the bundle on non-404 error pages #}
|
{# don't include the bundle on non-404 error pages #}
|
||||||
{% block head_bundle %}
|
{% block head_bundle %}
|
||||||
{% if statusCode == 404 %}
|
{% if statusCode == 404 %}
|
||||||
{{ super() }}
|
{{ block.Super }}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{%- block body_all %}
|
{%- block body_all %}
|
||||||
{% if statusCode == 404 %}
|
{% if statusCode == 404 %}
|
||||||
{{ super() }}
|
{{ block.Super }}
|
||||||
{% else %}
|
{% else %}
|
||||||
<h1>{{ statusCode }}: Server Error</h1>
|
<h1>{{ statusCode }}: Server Error</h1>
|
||||||
<p>Sorry about that! Our <a href="https://bluesky.statuspage.io/">Status Page</a> might have more context.
|
<p>Sorry about that! Our <a href="https://bluesky.statuspage.io/">Status Page</a> might have more context.
|
||||||
|
|||||||
Reference in New Issue
Block a user