Skip to content

Commit 7017201

Browse files
committed
Use service nav for govuk branded templates
1 parent d386cf0 commit 7017201

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## Unreleased
44

5+
### New features
6+
7+
- [#2466: Use service nav for govuk branded templates](https://github.com/alphagov/govuk-prototype-kit/pull/2466)
8+
59
## 13.18.1
610

711
### Fixes

lib/nunjucks/govuk-prototype-kit/layouts/govuk-branded.njk

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{%- set assetPath = assetPath | default('/plugin-assets/govuk-frontend' + govukFrontend.assetPath) -%}
2+
{% from "govuk/components/service-navigation/macro.njk" import govukServiceNavigation %}
23

34
{% extends "govuk/template.njk" %}
45

@@ -16,10 +17,12 @@
1617
{% block header %}
1718
{{ govukHeader({
1819
homepageUrl: "/",
19-
serviceName: serviceName,
20-
serviceUrl: "/",
2120
containerClasses: "govuk-width-container"
2221
}) }}
22+
{{ govukServiceNavigation({
23+
serviceName: serviceName,
24+
serviceUrl: '/'
25+
}) }}
2326
{% endblock %}
2427

2528
{% if (GOVUKPrototypeKit.isDevelopment) %}

0 commit comments

Comments
 (0)