Skip to content

Commit 36d5c80

Browse files
committed
CCM-8593: content security policy compliance
1 parent 002b6ef commit 36d5c80

File tree

5 files changed

+61
-2
lines changed

5 files changed

+61
-2
lines changed

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"**/.DS_Store": true,
88
"**/Thumbs.db": true,
99
"**/.ruby-lsp": true,
10-
"docs": true,
10+
// "docs": true,
1111
".devcontainer": true,
1212
".github": true,
1313
".vscode": false,

docs/Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ gem "minima", "~> 2.5"
1515
# gem "github-pages", group: :jekyll_plugins
1616
# If you have any plugins, put them here!
1717
group :jekyll_plugins do
18+
gem 'jekyll-content-security-policy-generator'
1819
gem "jekyll-feed", "~> 0.12"
1920
gem "jekyll-drawio"
2021
end

docs/_config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ collections:
3434

3535
# Build settings
3636
plugins:
37+
- jekyll-content-security-policy-generator
3738
- jekyll-feed
3839
- jekyll-sitemap
3940

docs/_includes/breadcrumb.html

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,68 @@
44

55
<ol class="nhsuk-breadcrumb__list">
66
<!-- Level 1 -->
7-
<li class="nhsuk-breadcrumb__item"><a class="nhsuk-breadcrumb__link" href="{{site.baseurl}}/">Home</a></li>
7+
<li class="nhsuk-breadcrumb__item">
8+
<a class="nhsuk-breadcrumb__link" href="{{site.baseurl}}/">Home</a>
9+
10+
</li>
11+
<svg class='nhsuk-icon nhsnotify-breadcrumb-chevron' xmlns='http://www.w3.org/2000/svg' fill='#aeb7bd' height='18'
12+
width='18' viewBox='0 0 24 24' aria-hidden='true'>
13+
<path
14+
d='M15.5 12a1 1 0 0 1-.29.71l-5 5a1 1 0 0 1-1.42-1.42l4.3-4.29-4.3-4.29a1 1 0 0 1 1.42-1.42l5 5a1 1 0 0 1 .29.71z'>
15+
</path>
16+
</svg>
817
<!-- Level 2 -->
918
{% if page.parent == "Features" %}
1019
<li class="nhsuk-breadcrumb__item"><a class="nhsuk-breadcrumb__link" href="{{site.baseurl}}/features">Features</a>
1120
</li>
21+
<svg class='nhsuk-icon nhsnotify-breadcrumb-chevron' xmlns='http://www.w3.org/2000/svg' fill='#aeb7bd' height='18'
22+
width='18' viewBox='0 0 24 24' aria-hidden='true'>
23+
<path
24+
d='M15.5 12a1 1 0 0 1-.29.71l-5 5a1 1 0 0 1-1.42-1.42l4.3-4.29-4.3-4.29a1 1 0 0 1 1.42-1.42l5 5a1 1 0 0 1 .29.71z'>
25+
</path>
26+
</svg>
1227
{% endif %}
1328
{% if page.parent == "Pricing" %}
1429
<li class="nhsuk-breadcrumb__item"><a class="nhsuk-breadcrumb__link" href="{{site.baseurl}}/pricing">Pricing</a>
1530
</li>
31+
<svg class='nhsuk-icon nhsnotify-breadcrumb-chevron' xmlns='http://www.w3.org/2000/svg' fill='#aeb7bd' height='18'
32+
width='18' viewBox='0 0 24 24' aria-hidden='true'>
33+
<path
34+
d='M15.5 12a1 1 0 0 1-.29.71l-5 5a1 1 0 0 1-1.42-1.42l4.3-4.29-4.3-4.29a1 1 0 0 1 1.42-1.42l5 5a1 1 0 0 1 .29.71z'>
35+
</path>
36+
</svg>
1637
{% endif %}
1738
{% if page.parent == "Using NHS Notify" %}
1839
<li class="nhsuk-breadcrumb__item"><a class="nhsuk-breadcrumb__link" href="{{site.baseurl}}/using-nhs-notify">Using
1940
NHS Notify</a>
2041
</li>
42+
<svg class='nhsuk-icon nhsnotify-breadcrumb-chevron' xmlns='http://www.w3.org/2000/svg' fill='#aeb7bd' height='18'
43+
width='18' viewBox='0 0 24 24' aria-hidden='true'>
44+
<path
45+
d='M15.5 12a1 1 0 0 1-.29.71l-5 5a1 1 0 0 1-1.42-1.42l4.3-4.29-4.3-4.29a1 1 0 0 1 1.42-1.42l5 5a1 1 0 0 1 .29.71z'>
46+
</path>
47+
</svg>
2148
{% endif %}
2249
{% if page.parent == "Support" %}
2350
<li class="nhsuk-breadcrumb__item"><a class="nhsuk-breadcrumb__link" href="{{site.baseurl}}/support">Support</a>
2451
</li>
52+
<svg class='nhsuk-icon nhsnotify-breadcrumb-chevron' xmlns='http://www.w3.org/2000/svg' fill='#aeb7bd' height='18'
53+
width='18' viewBox='0 0 24 24' aria-hidden='true'>
54+
<path
55+
d='M15.5 12a1 1 0 0 1-.29.71l-5 5a1 1 0 0 1-1.42-1.42l4.3-4.29-4.3-4.29a1 1 0 0 1 1.42-1.42l5 5a1 1 0 0 1 .29.71z'>
56+
</path>
57+
</svg>
2558
{% endif %}
2659
{% if page.parent == "Get started" %}
2760
<li class="nhsuk-breadcrumb__item"><a class="nhsuk-breadcrumb__link" href="{{site.baseurl}}/get-started">Get
2861
started</a>
2962
</li>
63+
<svg class='nhsuk-icon nhsnotify-breadcrumb-chevron' xmlns='http://www.w3.org/2000/svg' fill='#aeb7bd' height='18'
64+
width='18' viewBox='0 0 24 24' aria-hidden='true'>
65+
<path
66+
d='M15.5 12a1 1 0 0 1-.29.71l-5 5a1 1 0 0 1-1.42-1.42l4.3-4.29-4.3-4.29a1 1 0 0 1 1.42-1.42l5 5a1 1 0 0 1 .29.71z'>
67+
</path>
68+
</svg>
3069
{% endif %}
3170
</ol>
3271

docs/_sass/_nhsnotify.scss

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,3 +172,21 @@
172172
}
173173

174174
}
175+
176+
.nhsuk-breadcrumb__item:not(:last-child):after {
177+
display: none;
178+
height: 0px;
179+
margin-left: 0px;
180+
margin-right: 0px;
181+
width: 0px;
182+
}
183+
184+
.nhsnotify-breadcrumb-chevron {
185+
width: 18px;
186+
height: 18px;
187+
margin-bottom: -4px;
188+
}
189+
190+
.nhsnotify-breadcrumb-chevron:last-child {
191+
display: none;
192+
}

0 commit comments

Comments
 (0)