@nationalarchives/frontend 0.26.0 → 0.26.1
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.
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
{%- set containerClasses = [params.classes] if params.classes else [] -%}
|
|
4
4
|
{%- set classes = containerClasses | join(' ') -%}
|
|
5
5
|
|
|
6
|
-
{% if
|
|
6
|
+
{% if "social" in params %}
|
|
7
7
|
{% set social = params.social %}
|
|
8
8
|
{% elif params.defaultContent %}
|
|
9
9
|
{% set social = [
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
{% set social = [] %}
|
|
43
43
|
{% endif %}
|
|
44
44
|
|
|
45
|
-
{% if
|
|
45
|
+
{% if "navigation" in params %}
|
|
46
46
|
{% set navigation = params.navigation %}
|
|
47
47
|
{% elif params.defaultContent %}
|
|
48
48
|
{% set navigation = [
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
{% set navigation = [] %}
|
|
133
133
|
{% endif %}
|
|
134
134
|
|
|
135
|
-
{% if
|
|
135
|
+
{% if "legal" in params %}
|
|
136
136
|
{% set legal = params.legal %}
|
|
137
137
|
{% elif params.defaultContent %}
|
|
138
138
|
{% set legal = [
|
|
@@ -161,7 +161,7 @@
|
|
|
161
161
|
{% set legal = [] %}
|
|
162
162
|
{% endif %}
|
|
163
163
|
|
|
164
|
-
{% if
|
|
164
|
+
{% if "showNewsletter" in params %}
|
|
165
165
|
{% set showNewsletter = params.showNewsletter %}
|
|
166
166
|
{% elif params.defaultContent %}
|
|
167
167
|
{% set showNewsletter = true %}
|
|
@@ -73,11 +73,11 @@
|
|
|
73
73
|
"name": "overwriting default content",
|
|
74
74
|
"options": {
|
|
75
75
|
"defaultContent": true,
|
|
76
|
-
"topNavigation":
|
|
76
|
+
"topNavigation": null,
|
|
77
77
|
"navigation": [],
|
|
78
78
|
"logo": null
|
|
79
79
|
},
|
|
80
|
-
"html": "<header class=\"tna-global-header\" data-module=\"tna-global-header\"><div class=\"tna-container tna-global-header__main\"><div class=\"tna-column tna-column--flex-1 tna-column--order-2\"><span class=\"tna-global-header__logo-wrapper\"><
|
|
80
|
+
"html": "<header class=\"tna-global-header\" data-module=\"tna-global-header\"><div class=\"tna-container tna-global-header__main\"><div class=\"tna-column tna-column--flex-1 tna-column--order-2\"><span class=\"tna-global-header__logo-wrapper\"><span class=\"tna-global-header__logo\"><span class=\"tna-logo tna-logo--adornable\"><svg xmlns=\"http://www.w3.org/2000/svg\" xml:space=\"preserve\" viewBox=\"0 0 160 160\" width=\"96\" height=\"96\" aria-hidden=\"true\" focusable=\"false\"><path fill=\"transparent\" d=\"M0 0h160v160H0z\" class=\"tna-logo__background\" /><g class=\"tna-logo__foreground\" fill=\"currentColor\"><path d=\"M1.9 107.2h156.3V158H1.9v-50.8zm0-52.7h156.3v50.8H1.9V54.5zm0-52.6h77.2v50.8H1.9V1.9zm79 0h77.2v50.8H80.9V1.9zm0-1.9H0v160h160V0H80.9z\" /><path d=\"M21.3 19.5h-5.4v-3h14.3v3h-5.4v18.4h-3.5zM31.6 16.5H35v9h8.4v-9h3.4v21.4h-3.4v-9.3H35v9.3h-3.4zM50.9 16.5h12.2v3h-8.8v6.1h7.4v3h-7.4v6.3h8.8v3H50.9zM19.7 69.2h3.8l6.4 12.5c.6 1.1 1.1 2.7 1.6 4h.2c-.2-1.7-.3-3.6-.3-4.8V69.2h3.5v21.4h-3.7l-6.3-12.3c-.7-1.4-1.2-2.7-1.7-4.2H23c.2 1.4.3 3.3.3 5v11.5h-3.5c-.1 0-.1-21.4-.1-21.4zM47.8 82.6l-1.7-6.3c-.3-1.1-.6-2.2-.9-3.8H45c-.3 1.6-.5 2.6-.8 3.8l-1.7 6.3h5.3zM43 69.2h4.2l6.2 21.4h-3.5l-1.5-5.2h-6.6l-1.4 5.2h-3.6L43 69.2zM57.2 72.3h-5.4v-3.1H66v3.1h-5.4v18.4h-3.4zM67.8 69.2h3.5v21.4h-3.5zM87.5 80c0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5v9.1h8.3v-9.1h3.5v21.5h-3.5v-9.4h-8.3v9.4H68zM87.9 121.8h3.5v21.4h-3.5zM94.2 121.8h3.6l3.2 12.3c.5 1.9.8 3.6 1.1 5.6h.2c.3-2 .6-3.7 1.1-5.6l3.2-12.3h3.6l-6.1 21.4H100l-5.8-21.4zM112.7 121.8H125v3.1h-8.8v6h7.4v3h-7.4v6.3h8.8v3.1h-12.3zM130.4 136c0 .2-.1.5-.1.8 0 1.9.8 3.7 3.4 3.7 2.1 0 3.3-1.2 3.3-2.9 0-1.6-.7-2.4-2.2-3l-3.4-1.3c-2.4-.9-4.2-2.4-4.2-5.7 0-3.5 2.3-6.1 6.6-6.1 5.5 0 6.4 3.6 6.4 5.9 0 .3 0 .7-.1 1.1l-3.4.1c0-.2.1-.5.1-.7 0-1.7-.6-3.2-3-3.2-2.1 0-3 1.2-3 2.8 0 1.7.9 2.5 2.2 2.9l3.5 1.3c2.6 1 4.3 2.6 4.3 5.8 0 3.6-2.4 6.1-7 6.1-5.9 0-6.8-3.9-6.8-6.5 0-.3 0-.6.1-1l3.3-.1z\" /></g></svg></span></span></span></div></div></header>"
|
|
81
81
|
},
|
|
82
82
|
{
|
|
83
83
|
"name": "with no logo link",
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
{%- endif -%}
|
|
7
7
|
{%- set classes = containerClasses | join(' ') -%}
|
|
8
8
|
|
|
9
|
-
{% if
|
|
9
|
+
{% if "logo" in params %}
|
|
10
10
|
{% set logo = params.logo %}
|
|
11
11
|
{% elif params.defaultContent %}
|
|
12
12
|
{% set logo = {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
{% set logo = null %}
|
|
18
18
|
{% endif %}
|
|
19
19
|
|
|
20
|
-
{% if
|
|
20
|
+
{% if "navigation" in params %}
|
|
21
21
|
{% set navigation = params.navigation %}
|
|
22
22
|
{% elif params.defaultContent %}
|
|
23
23
|
{% set navigation = [
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
{% set navigation = [] %}
|
|
51
51
|
{% endif %}
|
|
52
52
|
|
|
53
|
-
{% if
|
|
53
|
+
{% if "topNavigation" in params %}
|
|
54
54
|
{% set topNavigation = params.topNavigation %}
|
|
55
55
|
{% elif params.defaultContent %}
|
|
56
56
|
{% set topNavigation = [
|