Skip to content

Commit 188de31

Browse files
committed
Update header and footer partials
Also update classes relating to the logo which were changed in v6
1 parent 60b6548 commit 188de31

File tree

5 files changed

+10
-14
lines changed

5 files changed

+10
-14
lines changed

views/layouts/_generic.njk

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,21 +41,22 @@
4141
}) %}{% endcall %}
4242
{% endblock %}
4343

44-
{# We provide our own header, so blank the one provided by the template #}
45-
{% block header %}{% endblock %}
46-
47-
{% block main %}
44+
{% block header %}
4845
{% include "_header.njk" %}
4946
{% include "_navigation.njk" %}
47+
{% endblock %}
48+
49+
{% block main %}
5050
{% include "_banner.njk" %}
5151

5252
{% block body %}
5353
{{ contents | safe }}
5454
{% endblock %}
5555
{% endblock %}
5656

57-
{# We provide our own footer, so blank the one provided by the template #}
58-
{% block footer %}{% endblock %}
57+
{% block footer %}
58+
{% include "_footer.njk" %}
59+
{% endblock %}
5960

6061
{% block bodyEnd %}
6162
<script type="module" src="{{ getFingerprint('/javascripts/application.js') }}"></script>

views/layouts/layout-pane.njk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,4 @@
6363
</div>
6464
{% include "_back-to-top.njk" %}
6565
</div>
66-
{% include "_footer.njk" %}
6766
{% endblock %}

views/layouts/layout-single-page.njk

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,4 @@
1111
{{ contents | safe }}
1212
</main>
1313
</div>
14-
15-
{% include "_footer.njk" %}
1614
{% endblock %}

views/layouts/layout.njk

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,4 @@
1212
<main id="main-content" role="main">
1313
{{ contents | safe }}
1414
</main>
15-
16-
{% include "_footer.njk" %}
1715
{% endblock %}

views/partials/_header.njk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
<header class="govuk-header govuk-header--full-width-border" role="banner">
1+
<div class="govuk-header govuk-header--full-width-border">
22
<div class="govuk-header__container app-width-container">
33
<div class="govuk-header__logo app-header-logo">
4-
<a href="/" class="govuk-header__link govuk-header__link--homepage">
4+
<a href="/" class="govuk-header__homepage-link">
55
<svg
66
xmlns="http://www.w3.org/2000/svg"
77
focusable="false"
@@ -37,4 +37,4 @@
3737
<a class="app-site-search__link govuk-link" href="/sitemap/">Sitemap</a>
3838
</div>
3939
</div>
40-
</header>
40+
</div>

0 commit comments

Comments
 (0)