Skip to content

Commit fec8a50

Browse files
Add support for pathways and add breast screening pathway index page
1 parent fb8f12b commit fec8a50

File tree

8 files changed

+47
-1
lines changed

8 files changed

+47
-1
lines changed

app/breast-screening-pathway.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ layout: collection
33
title: Breast screening pathway
44
description: Replacing legacy technology to build a clinically‑safe, integrated screening service that better supports breast screening office staff
55
area: screening
6+
pathway: breast-screening
67
pagination:
78
data: collections.breast-screening-pathway
89
reverse: true

app/breast-screening-reporting.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ layout: collection
33
title: Breast screening reporting
44
description: Breast Screening Reporting is a data team, formed in July 2025. It focuses on the performance and reporting of screening services. It continues some of the work of Team Analyse.
55
area: screening
6+
pathway: breast-screening
67
pagination:
78
data: collections.breast-screening-reporting
89
reverse: true

app/breast-screening.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
layout: collection
3+
title: Breast screening
4+
description: Design history posts from teams working on breast screening services
5+
area: screening
6+
pagination:
7+
data: collections.pathway-breast-screening
8+
reverse: true
9+
size: 50
10+
permalink: "breast-screening/{% if pagination.pageNumber > 0 %}page/{{ pagination.pageNumber + 1 }}{% endif %}/"
11+
---
12+
13+
## Teams
14+
15+
{% for team in collections['pathway-breast-screening-teams'] %}[{{ team.data.title }}]({{ team.url }}){% if not loop.last %} | {% endif %}{% endfor %}
16+
17+
## Posts

app/explore-team.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ layout: collection
33
title: Explore team
44
description: A discovery team that understands problems and experiments with solutions
55
area: screening
6+
pathway: breast-screening
67
pagination:
78
data: collections.explore-team
89
reverse: true

app/manage-breast-screening.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ layout: collection
33
title: Manage breast screening
44
description: A staff-facing service that supports the breast screening journey from appointment check-in to clinical data collection, image reading and arbitration
55
area: screening
6+
pathway: breast-screening
67
pagination:
78
data: collections.manage-breast-screening
89
reverse: true

app/screening-invite.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ layout: collection
33
title: Invite
44
description: Delivering screening communications to participants in an appropriate, clinically safe way through the channel that works best for them
55
area: screening
6+
pathway: breast-screening
67
pagination:
78
data: collections.screening-invite
89
reverse: true

app/select.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ layout: collection
33
title: Select
44
description: A service that helps ensure the right people are selected for invitation to screening
55
area: screening
6+
pathway: breast-screening
67
pagination:
78
data: collections.select
89
reverse: true

eleventy.config.js

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export default function (eleventyConfig) {
7171
eleventyConfig.addCollection(`${area}-area`, (collection) => {
7272
return collection
7373
.getAll()
74-
.filter(({ data }) => data?.area === area)
74+
.filter(({ data }) => data?.area === area && !data?.pathway)
7575
.sort((a, b) => {
7676
// Promoted collection in an area should be shown first
7777
if (a.data.promote) return -1
@@ -82,6 +82,29 @@ export default function (eleventyConfig) {
8282
})
8383
}
8484

85+
// Pathway collections
86+
// Breast screening pathway - aggregates posts from all breast screening teams
87+
eleventyConfig.addCollection('pathway-breast-screening', (collection) => {
88+
return collection
89+
.getFilteredByGlob([
90+
'app/manage-breast-screening/**/*.md',
91+
'app/breast-screening-pathway/**/*.md',
92+
'app/breast-screening-reporting/**/*.md',
93+
'app/explore-team/**/*.md',
94+
'app/select/**/*.md',
95+
'app/screening-invite/**/*.md'
96+
])
97+
.sort((a, b) => a.date - b.date)
98+
})
99+
100+
// Breast screening teams - the team index pages for this pathway
101+
eleventyConfig.addCollection('pathway-breast-screening-teams', (collection) => {
102+
return collection
103+
.getAll()
104+
.filter(({ data }) => data?.pathway === 'breast-screening' && data?.layout === 'collection')
105+
.sort((a, b) => a.data.title.localeCompare(b.data.title))
106+
})
107+
85108
// Service collections
86109
for (const service of [
87110
'digital-prevention-services',

0 commit comments

Comments
 (0)