Remove back_link parameter from page_header macro

This commit is contained in:
Katie Smith
2021-07-30 18:32:28 +01:00
parent 0f0b8b8ae4
commit f1d9f2ab19

View File

@@ -1,15 +1,8 @@
{% from "components/back-link/macro.njk" import govukBackLink %}
{% macro page_header(
h1,
back_link=None,
size='large'
) %}
{% if back_link %}
{{ govukBackLink({ "href": back_link }) }}
{% endif %}
<h1 class="heading-{{ size }}" id="page-header">{{ h1 }}</h1>
{% endmacro %}