Skip to content

Commit a608455

Browse files
Rough copy of NHS Notify Jekyll theming.
1 parent bf7f0b3 commit a608455

67 files changed

Lines changed: 1048 additions & 111 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ _site
33
.jekyll-cache
44
.jekyll-metadata
55
vendor
6+
node_modules

_config.yml

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,6 @@ url: "https://nhsdigital.github.io" # the base hostname & protocol for your site
3030
twitter_username: jekyllrb
3131
github_username: jekyll
3232

33-
# Build settings
34-
theme: just-the-docs
35-
plugins:
36-
- jekyll-feed
3733

3834
collections:
3935
safs:
@@ -49,31 +45,19 @@ defaults:
4945
path: "" # an empty string here means all files in the project
5046
type: "safs" # previously `post` in Jekyll 2.2.
5147
values:
52-
layout: "safs"
48+
layout: "saf"
5349
-
5450
scope:
5551
path: "" # an empty string here means all files in the project
5652
type: "saf_dimensions" # previously `post` in Jekyll 2.2.
5753
values:
58-
layout: "saf_dimensions"
54+
layout: "saf_dimension"
5955
-
6056
scope:
6157
path: "guidance" # an empty string here means all files in the project
6258
type: "pages" # previously `post` in Jekyll 2.2.
6359
values:
64-
layout: "home"
65-
-
66-
scope:
67-
path: "safs" # an empty string here means all files in the project
68-
type: "pages" # previously `post` in Jekyll 2.2.
69-
values:
70-
layout: "home"
71-
-
72-
scope:
73-
path: "saf_dimensions" # an empty string here means all files in the project
74-
type: "pages" # previously `post` in Jekyll 2.2.
75-
values:
76-
layout: "home"
60+
layout: "page"
7761

7862
just_the_docs:
7963
collections:
@@ -91,6 +75,10 @@ gh_edit_branch: "main" # the branch that your docs is served from
9175
#gh_edit_source: docs # the source that your files originate from
9276
gh_edit_view_mode: "tree" # "tree" or "edit" if you want the user to jump into the editor immediately
9377

78+
color_scheme: nhs
79+
80+
81+
9482
# Exclude from processing.
9583
# The following items will not be processed, by default.
9684
# Any item listed under the `exclude:` key here will be automatically added to

_data/home/contact.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
heading: Get in touch with the NHSE Solution Architecture Team
2+
description: |
3+
We're here to help you with any questions or feedback you may have about the NHSE Solution Architecture Framework. Whether you're an architect, developer, or stakeholder, we want to hear from you.
4+
image: sa.png
5+
image_alt: |
6+
""

_data/home/heading.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
heading: Learn the NHS England Solution Architecture Framework
2+
description: |
3+
The NHSE SAF is a framework for solution architecture in NHS England. It provides guidance and best practices to help architects design and implement solutions that meet the needs of the NHS.
4+
image: sa.png
5+
image_alt: |
6+
""

_data/primary-navigation.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
- title: Home
2+
link: /
3+
4+
5+
- title: Guidance
6+
link: /guidance/
7+
8+
- title: SAFs
9+
link: /safs/
10+
11+
- title: Dimensions
12+
link: /saf_dimensions/
13+
14+
- title: Contact
15+
link: /contact/

_includes/breadcrumb.html

Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
<nav class="nhsuk-breadcrumb" aria-label="Breadcrumb">
2+
3+
<!-- Desktop breadcrumb -->
4+
5+
<ol class="nhsuk-breadcrumb__list">
6+
7+
<!-- Level 1 -->
8+
<li class="nhsuk-breadcrumb__item">
9+
<a class="nhsuk-breadcrumb__link" href="{{site.baseurl}}/">Home</a>
10+
</li>
11+
12+
<!-- Level 2 -->
13+
{% if page.parent == "Features" %}
14+
<li class="nhsuk-breadcrumb__item">
15+
<a class="nhsuk-breadcrumb__link" href="{{site.baseurl}}/features">Features</a>
16+
</li>
17+
{% endif %}
18+
19+
{% if page.parent == "Pricing" %}
20+
<li class="nhsuk-breadcrumb__item">
21+
<a class="nhsuk-breadcrumb__link" href="{{site.baseurl}}/pricing">Pricing</a>
22+
</li>
23+
{% endif %}
24+
25+
{% if page.parent == "Using NHS Notify" %}
26+
<li class="nhsuk-breadcrumb__item">
27+
<a class="nhsuk-breadcrumb__link" href="{{site.baseurl}}/using-nhs-notify">Using NHS Notify</a>
28+
</li>
29+
{% endif %}
30+
31+
{% if page.parent == "Support" %}
32+
<li class="nhsuk-breadcrumb__item">
33+
<a class="nhsuk-breadcrumb__link" href="{{site.baseurl}}/support">Support</a>
34+
</li>
35+
{% endif %}
36+
37+
{% if page.parent == "Get started" %}
38+
<li class="nhsuk-breadcrumb__item">
39+
<a class="nhsuk-breadcrumb__link" href="{{site.baseurl}}/get-started">Get started</a>
40+
</li>
41+
{% endif %}
42+
43+
</ol>
44+
45+
<!-- Mobile breadcrumb back -->
46+
47+
<p class="nhsuk-breadcrumb__back">
48+
49+
<!-- Features -->
50+
{% if page.title == "Features" %}
51+
<a class="nhsuk-breadcrumb__backlink" href="{{site.baseurl}}/">
52+
<span class="nhsuk-u-visually-hidden">Back to &nbsp;</span>
53+
Home
54+
</a>
55+
{% endif %}
56+
57+
{% if page.parent == "Features" %}
58+
<a class="nhsuk-breadcrumb__backlink" href="{{site.baseurl}}/features">
59+
<span class="nhsuk-u-visually-hidden">Back to &nbsp;</span>
60+
Features
61+
</a>
62+
{% endif %}
63+
64+
<!-- Pricing -->
65+
{% if page.title == "Pricing" %}
66+
<a class="nhsuk-breadcrumb__backlink" href="{{site.baseurl}}/">
67+
<span class="nhsuk-u-visually-hidden">Back to &nbsp;</span>
68+
Home
69+
</a>
70+
{% endif %}
71+
72+
{% if page.parent == "Pricing" %}
73+
<a class="nhsuk-breadcrumb__backlink" href="{{site.baseurl}}/pricing">
74+
<span class="nhsuk-u-visually-hidden">Back to &nbsp;</span>
75+
Pricing
76+
</a>
77+
{% endif %}
78+
79+
<!-- Using NHS Notify -->
80+
{% if page.title == "Using NHS Notify" %}
81+
<a class="nhsuk-breadcrumb__backlink" href="{{site.baseurl}}/">
82+
<span class="nhsuk-u-visually-hidden">Back to &nbsp;</span>
83+
Home
84+
</a>
85+
{% endif %}
86+
87+
{% if page.parent == "Using NHS Notify" %}
88+
<a class="nhsuk-breadcrumb__backlink" href="{{site.baseurl}}/using-nhs-notify">
89+
<span class="nhsuk-u-visually-hidden">Back to &nbsp;</span>
90+
Using NHS Notify
91+
</a>
92+
{% endif %}
93+
94+
<!-- Support -->
95+
{% if page.title == "Support" %}
96+
<a class="nhsuk-breadcrumb__backlink" href="{{site.baseurl}}/">
97+
<span class="nhsuk-u-visually-hidden">Back to &nbsp;</span>
98+
Home
99+
</a>
100+
{% endif %}
101+
102+
<!-- Get started -->
103+
{% if page.title == "Get started" %}
104+
<a class="nhsuk-breadcrumb__backlink" href="{{site.baseurl}}/">
105+
<span class="nhsuk-u-visually-hidden">Back to &nbsp;</span>
106+
Home
107+
</a>
108+
{% endif %}
109+
110+
{% if page.parent == "Get started" %}
111+
<a class="nhsuk-breadcrumb__backlink" href="{{site.baseurl}}/get-started">
112+
<span class="nhsuk-u-visually-hidden">Back to &nbsp;</span>
113+
Get started
114+
</a>
115+
{% endif %}
116+
117+
</p>
118+
119+
</nav>

_includes/components/image.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<figure class="nhsuk-image {{ include.class | xml_escape }}">
2+
{% assign src = '/assets/images/' | prepend: site.baseurl | append: include.src %}
3+
{% if include.src contains 'https://' %}
4+
<img class="nhsuk-image__img" src='{{ include.src | uri_escape }}' alt='{{ include.alt | xml_escape }}' />
5+
{% else %}
6+
<img class="nhsuk-image__img" src='{{ src }}' alt='{{ include.alt | xml_escape }}' />
7+
{% endif %}
8+
{% if include.caption %}
9+
<figcaption class="nhsuk-image__caption">
10+
{{ include.caption }}
11+
</figcaption>
12+
{% endif %}
13+
</figure>

_includes/head.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<head>
2+
<meta charset="UTF-8">
3+
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
4+
5+
<link rel="stylesheet" href="{{ '/assets/css/nhs.css' | relative_url }}">
6+
7+
</head>

_includes/header.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<header class="nhsuk-header" role="banner">
2+
<div class="nhsuk-header__container">
3+
<div class="nhsuk-header__logo">
4+
<a class="nhsuk-header__link nhsuk-header__link--service" href="{{ site.baseurl }}/" aria-label="NHS Notify homepage">
5+
<svg class="nhsuk-logo" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 16" height="40" width="100">
6+
<path class="nhsuk-logo__background" fill="#005eb8" d="M0 0h40v16H0z"></path>
7+
<path class="nhsuk-logo__text" fill="#fff"
8+
d="M3.9 1.5h4.4l2.6 9h.1l1.8-9h3.3l-2.8 13H9l-2.7-9h-.1l-1.8 9H1.1M17.3 1.5h3.6l-1 4.9h4L25 1.5h3.5l-2.7 13h-3.5l1.1-5.6h-4.1l-1.2 5.6h-3.4M37.7 4.4c-.7-.3-1.6-.6-2.9-.6-1.4 0-2.5.2-2.5 1.3 0 1.8 5.1 1.2 5.1 5.1 0 3.6-3.3 4.5-6.4 4.5-1.3 0-2.9-.3-4-.7l.8-2.7c.7.4 2.1.7 3.2.7s2.8-.2 2.8-1.5c0-2.1-5.1-1.3-5.1-5 0-3.4 2.9-4.4 5.8-4.4 1.6 0 3.1.2 4 .6">
9+
</path>
10+
</svg>
11+
<span class="nhsuk-header__service-name">
12+
England Solution Architecture Framework
13+
</span>
14+
</a>
15+
</div>
16+
</div>
17+
<div class="nhsuk-navigation-container">
18+
{%- include primary-navigation.html -%}
19+
</div>
20+
</header>

_includes/primary-navigation.html

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<nav class="nhsuk-navigation" id="header-navigation" role="navigation" aria-label="Primary navigation">
2+
<ul class="nhsuk-header__navigation-list">
3+
{% for p in site.data.primary-navigation -%}
4+
<li class="nhsuk-header__navigation-item">
5+
<a href="{{ site.baseurl | append: p.link | xml_escape }}" class="nhsuk-header__navigation-link">
6+
{{ p.title }}
7+
</a>
8+
</li>
9+
{% endfor -%}
10+
<li class="nhsuk-mobile-menu-container">
11+
<button class="nhsuk-header__menu-toggle nhsuk-header__navigation-link" id="toggle-menu" aria-expanded="false">
12+
<span class="nhsuk-u-visually-hidden">Browse</span>
13+
More
14+
<svg class="nhsuk-icon nhsuk-icon__chevron-down" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"
15+
aria-hidden="true" focusable="false">
16+
<path
17+
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">
18+
</path>
19+
</svg>
20+
</button>
21+
</li>
22+
</ul>
23+
</nav>

0 commit comments

Comments
 (0)