Skip to content

Commit

Permalink
Merge branch 'footer-pages' of https://github.com/NHSDigital/nhs-noti…
Browse files Browse the repository at this point in the history
…fy-web-cms into footer-pages
  • Loading branch information
jakecosgrove authored Feb 25, 2025
2 parents 8e44fae + fcf6eb4 commit 6dc3506
Show file tree
Hide file tree
Showing 5 changed files with 68 additions and 4 deletions.
1 change: 1 addition & 0 deletions docs/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ gem "minima", "~> 2.5"
# gem "github-pages", group: :jekyll_plugins
# If you have any plugins, put them here!
group :jekyll_plugins do
gem 'jekyll-content-security-policy-generator'
gem "jekyll-feed", "~> 0.12"
gem "jekyll-drawio"
end
Expand Down
11 changes: 8 additions & 3 deletions docs/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ GEM
cgi (0.4.1)
colorator (1.1.0)
concurrent-ruby (1.2.3)
digest (3.2.0)
em-websocket (0.5.3)
eventmachine (>= 0.12.9)
http_parser.rb (~> 0)
Expand Down Expand Up @@ -35,6 +36,10 @@ GEM
safe_yaml (~> 1.0)
terminal-table (>= 1.8, < 4.0)
webrick (~> 1.7)
jekyll-content-security-policy-generator (1.6.15)
digest
jekyll
nokogiri
jekyll-drawio (1.1.1)
erb (>= 2.2, < 5.0)
jekyll (~> 4.3)
Expand Down Expand Up @@ -95,11 +100,10 @@ GEM
rbs (>= 3, < 4)
sorbet-runtime (>= 0.5.10782)
safe_yaml (1.0.5)
sass-embedded (1.69.5)
google-protobuf (~> 3.23)
rake (>= 13.0.0)
sass-embedded (1.69.5-arm64-darwin)
google-protobuf (~> 3.23)
sass-embedded (1.69.5-x86_64-linux-gnu)
google-protobuf (~> 3.23)
sorbet-runtime (0.5.11466)
strscan (3.1.0)
terminal-table (3.0.2)
Expand All @@ -114,6 +118,7 @@ PLATFORMS
DEPENDENCIES
http_parser.rb (~> 0.6.0)
jekyll (~> 4.3.3)
jekyll-content-security-policy-generator
jekyll-drawio
jekyll-feed (~> 0.12)
jekyll-sitemap (~> 1.4)
Expand Down
1 change: 1 addition & 0 deletions docs/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ collections:

# Build settings
plugins:
- jekyll-content-security-policy-generator
- jekyll-feed
- jekyll-sitemap

Expand Down
41 changes: 40 additions & 1 deletion docs/_includes/breadcrumb.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,68 @@

<ol class="nhsuk-breadcrumb__list">
<!-- Level 1 -->
<li class="nhsuk-breadcrumb__item"><a class="nhsuk-breadcrumb__link" href="{{site.baseurl}}/">Home</a></li>
<li class="nhsuk-breadcrumb__item">
<a class="nhsuk-breadcrumb__link" href="{{site.baseurl}}/">Home</a>

</li>
<svg class='nhsuk-icon nhsnotify-breadcrumb-chevron' xmlns='http://www.w3.org/2000/svg' fill='#aeb7bd' height='18'
width='18' viewBox='0 0 24 24' aria-hidden='true'>
<path
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'>
</path>
</svg>
<!-- Level 2 -->
{% if page.parent == "Features" %}
<li class="nhsuk-breadcrumb__item"><a class="nhsuk-breadcrumb__link" href="{{site.baseurl}}/features">Features</a>
</li>
<svg class='nhsuk-icon nhsnotify-breadcrumb-chevron' xmlns='http://www.w3.org/2000/svg' fill='#aeb7bd' height='18'
width='18' viewBox='0 0 24 24' aria-hidden='true'>
<path
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'>
</path>
</svg>
{% endif %}
{% if page.parent == "Pricing" %}
<li class="nhsuk-breadcrumb__item"><a class="nhsuk-breadcrumb__link" href="{{site.baseurl}}/pricing">Pricing</a>
</li>
<svg class='nhsuk-icon nhsnotify-breadcrumb-chevron' xmlns='http://www.w3.org/2000/svg' fill='#aeb7bd' height='18'
width='18' viewBox='0 0 24 24' aria-hidden='true'>
<path
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'>
</path>
</svg>
{% endif %}
{% if page.parent == "Using NHS Notify" %}
<li class="nhsuk-breadcrumb__item"><a class="nhsuk-breadcrumb__link" href="{{site.baseurl}}/using-nhs-notify">Using
NHS Notify</a>
</li>
<svg class='nhsuk-icon nhsnotify-breadcrumb-chevron' xmlns='http://www.w3.org/2000/svg' fill='#aeb7bd' height='18'
width='18' viewBox='0 0 24 24' aria-hidden='true'>
<path
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'>
</path>
</svg>
{% endif %}
{% if page.parent == "Support" %}
<li class="nhsuk-breadcrumb__item"><a class="nhsuk-breadcrumb__link" href="{{site.baseurl}}/support">Support</a>
</li>
<svg class='nhsuk-icon nhsnotify-breadcrumb-chevron' xmlns='http://www.w3.org/2000/svg' fill='#aeb7bd' height='18'
width='18' viewBox='0 0 24 24' aria-hidden='true'>
<path
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'>
</path>
</svg>
{% endif %}
{% if page.parent == "Get started" %}
<li class="nhsuk-breadcrumb__item"><a class="nhsuk-breadcrumb__link" href="{{site.baseurl}}/get-started">Get
started</a>
</li>
<svg class='nhsuk-icon nhsnotify-breadcrumb-chevron' xmlns='http://www.w3.org/2000/svg' fill='#aeb7bd' height='18'
width='18' viewBox='0 0 24 24' aria-hidden='true'>
<path
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'>
</path>
</svg>
{% endif %}
</ol>

Expand Down
18 changes: 18 additions & 0 deletions docs/_sass/_nhsnotify.scss
Original file line number Diff line number Diff line change
Expand Up @@ -172,3 +172,21 @@
}

}

.nhsuk-breadcrumb__item:not(:last-child):after {
display: none;
height: 0px;
margin-left: 0px;
margin-right: 0px;
width: 0px;
}

.nhsnotify-breadcrumb-chevron {
width: 18px;
height: 18px;
margin-bottom: -4px;
}

.nhsnotify-breadcrumb-chevron:last-child {
display: none;
}

0 comments on commit 6dc3506

Please sign in to comment.