Access content of extended block properly (block.Super instead of super()) (#7026)

This commit is contained in:
Dmitry Grachikov
2024-12-09 23:23:36 +01:00
committed by GitHub
parent bc4b4a3cfe
commit fec3352b68
+2 -2
View File
@@ -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.