diff --git a/app/components/header/header-logo.njk b/app/components/header/header-logo.njk
index 800210b56..aa44f63fd 100644
--- a/app/components/header/header-logo.njk
+++ b/app/components/header/header-logo.njk
@@ -5,10 +5,6 @@
{% block body %}
- {{ header({
- "showNav": "false",
- "showSearch": "false"
- })
- }}
+ {{ header() }}
{% endblock %}
diff --git a/app/components/header/header-navigation.njk b/app/components/header/header-navigation.njk
index 79ff95761..a628b91af 100644
--- a/app/components/header/header-navigation.njk
+++ b/app/components/header/header-navigation.njk
@@ -6,39 +6,36 @@
{% block body %}
{{ header({
- "showNav": "true",
- "showSearch": "false",
- "primaryLinks": [
- {
- "url" : "https://www.nhs.uk/conditions",
- "label" : "Health A-Z",
- "classes": "app-header__navigation-item--current",
- "attributes": {
- "aria-current": "true"
- }
- },
- {
- 'url' : 'https://www.nhs.uk/live-well/',
- 'label' : 'Live Well'
- },
- {
- 'url' : 'https://www.nhs.uk/mental-health/',
- 'label' : 'Mental health'
- },
- {
- 'url' : 'https://www.nhs.uk/conditions/social-care-and-support/',
- 'label' : 'Care and support'
- },
- {
- 'url' : 'https://www.nhs.uk/pregnancy/',
- 'label' : 'Pregnancy'
- },
- {
- 'url' : 'https://www.nhs.uk/nhs-services/',
- 'label' : 'NHS services'
+ "primaryLinks": [
+ {
+ "url" : "https://www.nhs.uk/conditions",
+ "label" : "Health A-Z",
+ "classes": "app-header__navigation-item--current",
+ "attributes": {
+ "aria-current": "true"
}
- ]
- })
- }}
+ },
+ {
+ 'url' : 'https://www.nhs.uk/live-well/',
+ 'label' : 'Live Well'
+ },
+ {
+ 'url' : 'https://www.nhs.uk/mental-health/',
+ 'label' : 'Mental health'
+ },
+ {
+ 'url' : 'https://www.nhs.uk/conditions/social-care-and-support/',
+ 'label' : 'Care and support'
+ },
+ {
+ 'url' : 'https://www.nhs.uk/pregnancy/',
+ 'label' : 'Pregnancy'
+ },
+ {
+ 'url' : 'https://www.nhs.uk/nhs-services/',
+ 'label' : 'NHS services'
+ }
+ ]
+ }) }}
{% endblock %}
diff --git a/app/components/header/header-org-white-nav.njk b/app/components/header/header-org-white-nav.njk
index c0d27af32..389605c8d 100644
--- a/app/components/header/header-org-white-nav.njk
+++ b/app/components/header/header-org-white-nav.njk
@@ -6,8 +6,6 @@
{% block body %}
{{ header({
- "showNav": "true",
- "showSearch": "true",
"classes": "nhsuk-header--white nhsuk-header--white-nav",
"organisation": {
"name": "Anytown Anyplace",
@@ -35,7 +33,10 @@
'url' : '#',
'label' : 'Our research'
}
- ]
+ ],
+ "search": {
+ "label": "Search the Anytown Anyplace Anywhere website"
+ }
})
}}
diff --git a/app/components/header/header-org-white.njk b/app/components/header/header-org-white.njk
index 50c155ce0..980948b77 100644
--- a/app/components/header/header-org-white.njk
+++ b/app/components/header/header-org-white.njk
@@ -6,8 +6,6 @@
{% block body %}
{{ header({
- "showNav": "true",
- "showSearch": "true",
"classes": "nhsuk-header--white",
"organisation": {
"name": "Anytown Anyplace",
@@ -35,7 +33,10 @@
'url' : '#',
'label' : 'Our research'
}
- ]
+ ],
+ "search": {
+ "label": "Search the Anytown Anyplace Anywhere website"
+ }
})
}}
diff --git a/app/components/header/header-org.njk b/app/components/header/header-org.njk
index 134cca172..0fb9d9ff3 100644
--- a/app/components/header/header-org.njk
+++ b/app/components/header/header-org.njk
@@ -6,8 +6,6 @@
{% block body %}
{{ header({
- "showNav": "true",
- "showSearch": "true",
"organisation": {
"name": "Anytown Anyplace",
"split": "Anywhere",
@@ -34,7 +32,10 @@
'url' : '#',
'label' : 'Our research'
}
- ]
+ ],
+ "search": {
+ "label": "Search the Anytown Anyplace Anywhere website"
+ }
})
}}
diff --git a/app/components/header/header-search.njk b/app/components/header/header-search.njk
index 3eace51f0..bc8f026e2 100644
--- a/app/components/header/header-search.njk
+++ b/app/components/header/header-search.njk
@@ -6,35 +6,7 @@
{% block body %}
{{ header({
- "showNav": "false",
- "showSearch": "true",
- "primaryLinks": [
- {
- "url" : "https://www.nhs.uk/conditions",
- "label" : "Health A-Z"
- },
- {
- 'url' : 'https://www.nhs.uk/live-well/',
- 'label' : 'Live Well'
- },
- {
- 'url' : 'https://www.nhs.uk/mental-health/',
- 'label' : 'Mental health'
- },
- {
- 'url' : 'https://www.nhs.uk/conditions/social-care-and-support/',
- 'label' : 'Care and support'
- },
- {
- 'url' : 'https://www.nhs.uk/pregnancy/',
- 'label' : 'Pregnancy'
- },
- {
- 'url' : 'https://www.nhs.uk/nhs-services/',
- 'label' : 'NHS services'
- }
- ]
- })
- }}
+ "search": "true"
+ }) }}
{% endblock %}
diff --git a/app/components/header/header-service-name-with-nav.njk b/app/components/header/header-service-name-with-nav.njk
index d4680c3e6..a0c88e1d1 100644
--- a/app/components/header/header-service-name-with-nav.njk
+++ b/app/components/header/header-service-name-with-nav.njk
@@ -9,8 +9,9 @@
"service": {
"name": "Digital service manual"
},
- "showNav": "true",
- "showSearch": "true",
+ "search": {
+ "label": "Search the NHS digital service manual"
+ },
"primaryLinks": [
{
"url" : "#",
diff --git a/app/components/header/header-service-name.njk b/app/components/header/header-service-name.njk
index 8c5149e50..a5c1a6559 100644
--- a/app/components/header/header-service-name.njk
+++ b/app/components/header/header-service-name.njk
@@ -6,10 +6,9 @@
{% block body %}
{{ header({
- "service": {
- "name": "Prototype kit"
- }
- })
- }}
+ "service": {
+ "name": "Prototype kit"
+ }
+ }) }}
{% endblock %}
diff --git a/app/components/header/header-transactional-service-name.njk b/app/components/header/header-transactional-service-name.njk
index 13038875d..ed53ebc4b 100644
--- a/app/components/header/header-transactional-service-name.njk
+++ b/app/components/header/header-transactional-service-name.njk
@@ -6,12 +6,9 @@
{% block body %}
{{ header({
- "transactionalService": {
- "name": "Find your NHS number"
- },
- "showNav": "false",
- "showSearch": "false"
- })
- }}
+ "transactionalService": {
+ "name": "Find your NHS number"
+ }
+ }) }}
{% endblock %}
diff --git a/packages/components/header/template.njk b/packages/components/header/template.njk
index b1ac41ade..004a901b0 100644
--- a/packages/components/header/template.njk
+++ b/packages/components/header/template.njk
@@ -1,167 +1,87 @@
-{# Define some defaults #}
-{% set showNav = params.showNav if params.showNav else "false" %}
-{% set showSearch = params.showSearch if params.showSearch else "false" %}
-
-{% set nhsLogo %}
-
-{% endset %}
+{%- set nhsLogo %}
+
+{%- endset %}