Add backLink block to templates

This will be used to put the back link in, since it it is before the
`<main>` tag. We could have used the `beforeContent` block directly, but
that sometimes already has content in - this means it's not clear when
you also need to use `super()` inside the block and when you don't.
This commit is contained in:
Katie Smith
2021-07-30 14:24:35 +01:00
parent c7c4c6543a
commit 0b9f1053b3
4 changed files with 8 additions and 2 deletions

View File

@@ -22,7 +22,9 @@
{% else %}
<div class="govuk-grid-column-three-quarters">
{% endif %}
{% block beforeContent %}{% endblock %}
{% block beforeContent %}
{% block backLink %}{% endblock %}
{% endblock %}
<main class="govuk-main-wrapper column-main {{ mainClasses }}" id="main-content" role="main">
{% block content %}
{% include 'flash_messages.html' %}