Skip to content

Commit 2ae6cdb

Browse files
Merge pull request #20 from NHSDigital/add-explore-team
Add Explore team
2 parents e8fa9ab + 20a59f6 commit 2ae6cdb

File tree

4 files changed

+44
-0
lines changed

4 files changed

+44
-0
lines changed

app/posts/explore-team.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: Explore team
4+
description: A discovery team that understands problems and experiments with solutions
5+
pagination:
6+
data: collections.explore-team
7+
reverse: true
8+
size: 50
9+
permalink: "explore-team/{% if pagination.pageNumber > 0 %}page/{{ pagination.pageNumber + 1 }}{% endif %}/"
10+
---
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
title: An example post with screenshots
3+
description: This example was generated using a script and shows how to automatically include a list of screenshots at the end of your post.
4+
date: 2019-12-31
5+
screenshots:
6+
items:
7+
- text: Design history index
8+
src: 01-design-history-index.png
9+
caption: |
10+
You can include captions with each image, and each caption can include markdown. This is a screenshot of the [index page](/).
11+
- text: Search results
12+
src: 02-search-results.png
13+
- text: A design history post
14+
src: 03-a-design-history-post.png
15+
tags:
16+
- examples
17+
---
18+
19+
This is an example of a standard design history post – it begins with a preamble about the design and ends with a list of screenshots.
20+
21+
Some real examples are:
22+
23+
- [Apply for teacher training: Reasons for withdrawing an application](https://bat-design-history.netlify.app/apply-for-teacher-training/reason-for-withdraw/)
24+
- [Manage teacher applications: Deferring an application](https://bat-design-history.netlify.app/manage-teacher-training-applications/deferring-applications-to-the-next-cycle/)
25+
- [Find postgraduate teacher training: A snapshot of the service](https://bat-design-history.netlify.app/find-teacher-training/find-december-2019/)
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"eleventyNavigation": {
3+
"parent": "Explore team"
4+
}
5+
}

eleventy.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ module.exports = function (eleventyConfig) {
3636
// Passthrough
3737
eleventyConfig.addPassthroughCopy({ './app/images': '.' })
3838

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

0 commit comments

Comments
 (0)