Skip to content

Commit 0557eff

Browse files
authored
Merge pull request #21 from NHSDigital/bowel-test
Merge bowel screening section to main
2 parents 2ae6cdb + 2a0e370 commit 0557eff

File tree

4 files changed

+32
-0
lines changed

4 files changed

+32
-0
lines changed

app/posts/bowel-screening.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
layout: collection
3+
title: Bowel screening
4+
description: A record of bowel screening design work
5+
pagination:
6+
data: collections.bowel-screening
7+
reverse: true
8+
size: 50
9+
permalink: "bowel-screening/{% if pagination.pageNumber > 0 %}page/{{ pagination.pageNumber + 1 }}{% endif %}/"
10+
---
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
title: An example post with no images
3+
date: 2024-12-01
4+
tags:
5+
- examples
6+
---
7+
8+
## Test title
9+
10+
## You can print this page
11+
12+
If you print preview a design history post you’ll see that each screenshot is given its own page.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"eleventyNavigation": {
3+
"parent": "Bowel screening"
4+
}
5+
}
6+

eleventy.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ module.exports = function (eleventyConfig) {
4444
return collection.getFilteredByGlob('app/posts/manage-screening-events/*.md')
4545
})
4646

47+
eleventyConfig.addCollection('bowel-screening', collection => {
48+
return collection.getFilteredByGlob('app/posts/bowel-screening/*.md')
49+
})
50+
4751
// Config
4852
return {
4953
dataTemplateEngine: 'njk',

0 commit comments

Comments
 (0)