Skip to content

Commit

Permalink
Add a 'cross programme' collection and metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
peteryates committed Mar 28, 2024
1 parent a3c052b commit b086533
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 17 deletions.
4 changes: 4 additions & 0 deletions .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ module.exports = function (eleventyConfig) {
return collection.getFilteredByGlob('app/posts/support-for-early-career-teachers/*.md')
})

eleventyConfig.addCollection('cross-programme', collection => {
return collection.getFilteredByGlob('app/posts/cross-programme/*.md')
})

// Browser Sync
eleventyConfig.setBrowserSyncConfig({
rewriteRules: [{
Expand Down
15 changes: 0 additions & 15 deletions app/_layouts/product.njk
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,6 @@
</div>
{% endfor %}

<div class="govuk-grid-row">
<div class="govuk-grid-column-full">
<h2 class="govuk-heading-l govuk-!-font-size-27">
Programme level design
</h2>
</div>

<section class="govuk-grid-column-one-half govuk-!-margin-bottom-6">
<h3 class="govuk-heading-m govuk-!-margin-bottom-1">
<a href="{{ "/cross-programme/running-a-cross-service-discovery" | url }}">Running a cross service discovery</a>
</h3>
<p class="govuk-body">Getting to the root of CPD's endemic problems</p>
</section>
</div>

<div class="govuk-grid-row">
<div class="govuk-grid-column-full">
<h2 class="govuk-heading-l govuk-!-font-size-27">
Expand Down
15 changes: 15 additions & 0 deletions app/posts/cross-programme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
layout: collection
date: 2000-01-01
title: Continuing Professional Development
description: |
The Continuing Professional Development (CPD) programme aims to provide teachers and leaders with access to high quality training courses
paginationHeading: Posts
pagination:
data: collections.cross-programme
reverse: true
size: 50
permalink: "cross-programme/{% if pagination.pageNumber > 0 %}page/{{ pagination.pageNumber + 1 }}{% endif %}/"
related:
items:
---
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Running a cross service discovery
description: Lorem ipsum dolor sit amet, qui minim labore adipisicing minim sint cillum sint consectetur cupidatat.
date: 2024-03-20
description: "Taking a deep dive into the struggles faced by CPD and working out how best to address them"
date: 2024-03-28
---

Between June and November 2023, a multidisciplinary team did a discovery to explore the problems we faced over 2 years of delivering Teacher CPD services.
Expand Down
5 changes: 5 additions & 0 deletions app/posts/cross-programme/cross-programme.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"eleventyNavigation": {
"parent": "Continuing Professional Development"
}
}

0 comments on commit b086533

Please sign in to comment.