Skip to content

Commit df710d9

Browse files
Merge pull request #12 from NHSDigital/add-manage-service
Add Manage service and refactor a bit
2 parents 34450be + 3c38cf3 commit df710d9

File tree

9 files changed

+27
-8
lines changed

9 files changed

+27
-8
lines changed

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
18
1+
22

app/images/example-post/01-design-history-index.png renamed to app/images/manage-screening-events/example-post/01-design-history-index.png

File renamed without changes.

app/images/example-post/02-search-results.png renamed to app/images/manage-screening-events/example-post/02-search-results.png

File renamed without changes.

app/images/example-post/03-a-design-history-post.png renamed to app/images/manage-screening-events/example-post/03-a-design-history-post.png

File renamed without changes.

app/index.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
22
homepage: true
33
layout: product
4-
title: A design history for your NHS.UK service
5-
description: A permanent record of how your service has developed over time.
6-
pagination:
7-
data: collections.all
8-
reverse: true
9-
size: 50
4+
title: Screening design history
5+
description: Digital transformation of screening at NHS
6+
sections:
7+
title: Services
108
---
9+
10+
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 screening events
4+
description: An Alpha for managing breast cancer screening events
5+
pagination:
6+
data: collections.manage-screening-events
7+
reverse: true
8+
size: 50
9+
permalink: "manage-screening-events/{% if pagination.pageNumber > 0 %}page/{{ pagination.pageNumber + 1 }}{% endif %}/"
10+
---

app/posts/2019-12-31-example-post.md renamed to app/posts/manage-screening-events/2019-12-31-example-post.md

File renamed without changes.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"eleventyNavigation": {
3+
"parent": "Manage screening events"
4+
}
5+
}

eleventy.config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module.exports = function (eleventyConfig) {
1717
logotype: {
1818
html: `<svg class="app-logo" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 32" height="40" aria-hidden="true" focusable="false"><path fill="currentColor" d="M80 0v32H0V0h80ZM69 2.2c-5.8 0-11.6 2-11.6 8.8 0 7.4 10.2 5.8 10.2 10 0 2.6-3.4 3-5.6 3-2.2 0-5-.6-6.4-1.4L54 28c2.2.8 5.4 1.4 8 1.4 6.2 0 12.8-1.8 12.8-9 0-7.8-10.2-6.6-10.2-10.2 0-2.2 2.2-2.6 5-2.6 2.6 0 4.4.6 5.8 1.2L77 3.4c-1.8-.8-4.8-1.2-8-1.2ZM16.6 3H7.8L2.2 29h6.6l3.6-18h.2L18 29h8.6l5.6-26h-6.6L22 21h-.2L16.6 3Zm25.2 0h-7.2l-5.2 26h6.8l2.4-11.2h8.2L44.6 29h7L57 3h-7l-2.2 9.8h-8l2-9.8Z"/></svg>`,
1919
},
20-
productName: 'Design history',
20+
productName: 'Screening design history',
2121
search: {
2222
indexPath: '/search.json',
2323
sitemapPath: '/sitemap'
@@ -36,6 +36,10 @@ module.exports = function (eleventyConfig) {
3636
// Passthrough
3737
eleventyConfig.addPassthroughCopy({ './app/images': '.' })
3838

39+
eleventyConfig.addCollection('manage-screening-events', collection => {
40+
return collection.getFilteredByGlob('app/posts/manage-screening-events/*.md')
41+
})
42+
3943
// Config
4044
return {
4145
dataTemplateEngine: 'njk',

0 commit comments

Comments
 (0)