@x-govuk/govuk-eleventy-plugin 6.4.1 → 6.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2,10 +2,6 @@
|
|
|
2
2
|
// See: https://github.com/alphagov/govuk-design-system/blob/master/src/stylesheets/components/_header.scss
|
|
3
3
|
|
|
4
4
|
@include govuk-exports("app-header") {
|
|
5
|
-
.app-header--full-width-border {
|
|
6
|
-
border-bottom: $govuk-border-width-wide solid $govuk-brand-colour;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
5
|
.app-header--no-border {
|
|
10
6
|
border-bottom: 0;
|
|
11
7
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{%- from "../site-search/macro.njk" import appSiteSearch -%}
|
|
2
2
|
{%- if options.navigation -%}
|
|
3
|
-
{%- set
|
|
3
|
+
{%- set headerClasses = " govuk-header--full-width-border" -%}
|
|
4
4
|
{% elif layout == "product" or layout == "collection" %}
|
|
5
|
-
{%- set
|
|
5
|
+
{%- set headerClasses = " app-header--no-border" -%}
|
|
6
6
|
{%- endif -%}
|
|
7
|
-
<header class="govuk-header app-header{
|
|
7
|
+
<header class="govuk-header app-header{{ headerClasses }}" role="banner" data-module="govuk-header">
|
|
8
8
|
<div class="govuk-header__container govuk-width-container app-header__container">
|
|
9
9
|
<div class="govuk-header__logo app-header__logo">
|
|
10
10
|
<a href="{{ params.homepageUrl | default("/") }}" class="govuk-header__link govuk-header__link--homepage">
|
package/layouts/base.njk
CHANGED
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
{# Components #}
|
|
22
22
|
{% from "govuk/components/breadcrumbs/macro.njk" import govukBreadcrumbs %}
|
|
23
23
|
{% from "govuk/components/pagination/macro.njk" import govukPagination %}
|
|
24
|
+
{% from "govuk/components/service-navigation/macro.njk" import govukServiceNavigation %}
|
|
24
25
|
|
|
25
26
|
{% from "x-govuk/components/masthead/macro.njk" import xGovukMasthead %}
|
|
26
|
-
{% from "x-govuk/components/primary-navigation/macro.njk" import xGovukPrimaryNavigation %}
|
|
27
27
|
{% from "x-govuk/components/related-navigation/macro.njk" import xGovukRelatedNavigation %}
|
|
28
28
|
{% from "x-govuk/components/sub-navigation/macro.njk" import xGovukSubNavigation %}
|
|
29
29
|
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
{% endblock %}
|
|
42
42
|
|
|
43
43
|
{% block head %}
|
|
44
|
-
<link rel="stylesheet" href="/assets/govuk.css">
|
|
44
|
+
<link rel="stylesheet" href="{{ "/assets/govuk.css" | canonicalUrl }}">
|
|
45
45
|
{% for stylesheet in options.stylesheets %}
|
|
46
46
|
<link rel="stylesheet" href="{{ stylesheet | canonicalUrl }}">
|
|
47
47
|
{% endfor %}
|
|
@@ -65,9 +65,9 @@
|
|
|
65
65
|
|
|
66
66
|
{% block header %}
|
|
67
67
|
{{ appHeader(options.header) }}
|
|
68
|
-
{{
|
|
69
|
-
|
|
70
|
-
|
|
68
|
+
{{ govukServiceNavigation({
|
|
69
|
+
navigationLabel: options.navigation.visuallyHiddenTitle,
|
|
70
|
+
navigation: options.navigation.items | currentPage(page.url)
|
|
71
71
|
}) if options.navigation }}
|
|
72
72
|
{% endblock %}
|
|
73
73
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@x-govuk/govuk-eleventy-plugin",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.5.0",
|
|
4
4
|
"description": "Write documentation using Markdown and publish it using GOV.UK styles",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"govuk",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"@rollup/plugin-node-resolve": "^15.0.0",
|
|
60
60
|
"@x-govuk/govuk-prototype-components": "^3.0.0",
|
|
61
61
|
"deepmerge": "^4.2.2",
|
|
62
|
-
"govuk-frontend": "^5.
|
|
62
|
+
"govuk-frontend": "^5.6.0",
|
|
63
63
|
"luxon": "^3.0.1",
|
|
64
64
|
"markdown-it-abbr": "^2.0.0",
|
|
65
65
|
"markdown-it-anchor": "^9.0.0",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"eslint-config-prettier": "^9.1.0",
|
|
84
84
|
"eslint-config-standard": "^17.1.0",
|
|
85
85
|
"eslint-plugin-import": "^2.29.0",
|
|
86
|
-
"eslint-plugin-jsdoc": "^
|
|
86
|
+
"eslint-plugin-jsdoc": "^50.0.0",
|
|
87
87
|
"eslint-plugin-n": "^16.4.0",
|
|
88
88
|
"eslint-plugin-prettier": "^5.0.0",
|
|
89
89
|
"eslint-plugin-promise": "^6.1.0",
|