Skip to content

Commit 9ae0270

Browse files
Rename to Digital prevention services design history (#42)
This renames the Screening design history to Digital prevention services design history, to allow other services within the portfolio (eg Vaccinations and Prevention services) to contribute.
1 parent 13718bf commit 9ae0270

File tree

16 files changed

+167
-21
lines changed

16 files changed

+167
-21
lines changed

README.md

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Design history for NHS.UK screening
1+
# Digital prevention services design history
22

3-
A place for services within screening to document their design decisions and research learnings.
3+
A place for services within digital prevention services to document their design decisions and research learnings.
44

55
## Installation and getting started
66

@@ -12,7 +12,20 @@ A place for services within screening to document their design decisions and res
1212

1313
## Adding a new service
1414

15-
For new services in screening, [follow this guide to get yourself added](https://x-govuk.github.io/govuk-design-history/divide-a-design-history-into-sections/).
15+
To add a new service, there is some set up involved.
16+
17+
You will need to create some files and folders based on the name of your service, using lowercase and hypens. For example `your-service-name`.
18+
19+
You’ll need to:
20+
21+
* create a folder for your service within `app/posts/`, for example `app/posts/your-service-name/`
22+
* create a folder with the same name in `app/images/`, for example `app/images/your-service-name/`
23+
* create a `your-service-name.js` file within `app/posts/` that adds the eleventyNavigation parent name as the name of your service (copy an existing example)
24+
* create a Markdown file in `app/posts/`, for example `app/posts/your-service-name.md`. Copy an existing example and update any references to match your service.
25+
* update `eleventy.config.js` to create a new 'collection' for your service (copy one of the existing examples)
26+
* update `app/_layouts/_product.njk` to list your new service in the `sections` variable
27+
28+
See [Divide a design history into different sections](https://x-govuk.github.io/govuk-design-history/divide-a-design-history-into-sections/).
1629

1730
## Adding a new post
1831

@@ -49,7 +62,7 @@ Once it is merged the updated design history will automatically deploy with your
4962

5063
## Support
5164

52-
For issues relating to the NHS Screening design history, [contact Ed Horsford](https://github.com/edwardhorsford).
65+
For issues relating to the NHS Digtal prevention services design history, contact [Ed Horsford](https://github.com/edwardhorsford), [Frankie Roberto](https://github.com/frankieroberto) or [Ralph Hawkins](https://github.com/ralph-hawkins).
5366

5467
The [GOV.UK design history project](https://x-govuk.github.io/govuk-design-history/) is maintained by a small number of volunteers working across government.
5568

app/_layouts/product.njk

Lines changed: 29 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,36 @@
3030
{% endif %}
3131
{# List sections (pages with a parent that is the homepage) if homepage has no pagination key set #}
3232
{% elif eleventyNavigation.key == options.homeKey %}
33-
<div class="govuk-grid-column-full">
34-
<h2 class="govuk-heading-l govuk-!-font-size-27">
35-
{{ sections.title or app.sections.title or "Sections" }}
36-
</h2>
37-
</div>
38-
{% for item in collections.all | eleventyNavigation(options.homeKey) %}
39-
<section class="govuk-grid-column-one-half govuk-!-margin-bottom-6">
40-
<h3 class="govuk-heading-m govuk-!-margin-bottom-1">
41-
<a href="{{ item.url | pretty }}">{{ item.title }}</a>
42-
</h3>
43-
<p class="govuk-body">{{ item.excerpt }}</p>
44-
</section>
33+
34+
{% set sections = [
35+
{ title: "Screening", services: [
36+
"Bowel screening",
37+
"Explore team",
38+
"Manage breast screening"
39+
] }
40+
] %}
41+
42+
{% for section in sections %}
43+
<div class="govuk-grid-column-two-thirds">
44+
<h2 class="govuk-heading-l">
45+
{{ section.title }}
46+
</h2>
47+
</div>
48+
49+
{% for service in section.services %}
50+
{% for item in collections.all | eleventyNavigation(options.homeKey) %}
51+
{% if (service == item.title) %}
52+
<section class="govuk-grid-column-one-half govuk-!-margin-bottom-6">
53+
<h3 class="govuk-heading-m govuk-!-margin-bottom-1">
54+
<a href="{{ item.url | pretty }}">{{ item.title }}</a>
55+
</h3>
56+
<p class="govuk-body">{{ item.excerpt }}</p>
57+
</section>
58+
{% endif %}
59+
{% endfor %}
60+
{% endfor %}
4561
{% endfor %}
62+
4663
{% endif %}
4764
</div>
4865
{% endblock %}

app/index.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
---
22
homepage: true
33
layout: product
4-
title: Screening design history
5-
description: Digital transformation of screening at NHS
6-
sections:
7-
title: Services
4+
title: Digital prevention services design history
5+
description: A record of design and research for NHS digital prevention services
86
---
97

108

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
layout: collection
3+
title: Digital NHS health check
4+
description: A online check‑up of overall health for people aged 40&nbsp;to&nbsp;74.
5+
pagination:
6+
data: collections.digital-nhs-health-check
7+
reverse: true
8+
size: 50
9+
permalink: "digital-nhs-health-check/{% if pagination.pageNumber > 0 %}page/{{ pagination.pageNumber + 1 }}{% endif %}/"
10+
---
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"eleventyNavigation": {
3+
"parent": "Digital NHS health check"
4+
}
5+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
layout: collection
3+
title: Manage your appointments
4+
description: A service for managing vaccination appointments slots
5+
pagination:
6+
data: collections.manage-your-appointments
7+
reverse: true
8+
size: 50
9+
permalink: "manage-your-appointments/{% if pagination.pageNumber > 0 %}page/{{ pagination.pageNumber + 1 }}{% endif %}/"
10+
---
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"eleventyNavigation": {
3+
"parent": "Manage your appointments"
4+
}
5+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
layout: collection
3+
title: Personalised prevention platform
4+
description: Helping people at risk of, or living with, health conditions to find appropriate services.
5+
pagination:
6+
data: collections.personalised-prevention-platform
7+
reverse: true
8+
size: 50
9+
permalink: "personalised-prevention-platform/{% if pagination.pageNumber > 0 %}page/{{ pagination.pageNumber + 1 }}{% endif %}/"
10+
---
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"eleventyNavigation": {
3+
"parent": "Personalised prevention platform"
4+
}
5+
}

app/posts/record-a-vaccination.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
layout: collection
3+
title: Record a vaccination
4+
description: A service for recording vaccinations
5+
area: Vaccinations
6+
pagination:
7+
data: collections.record-a-vaccination
8+
reverse: true
9+
size: 50
10+
permalink: "record-a-vaccination/{% if pagination.pageNumber > 0 %}page/{{ pagination.pageNumber + 1 }}{% endif %}/"
11+
---

0 commit comments

Comments
 (0)