From 9f8b8a66f6a577aad55093ae9a75ede1a8ea4fc5 Mon Sep 17 00:00:00 2001 From: Daniel Cho Date: Fri, 17 Jan 2025 16:56:49 -0500 Subject: [PATCH 1/3] fix: set default layout for projects in cms --- src/admin/config.yml | 1 + src/assets/styles/components/_card.css | 1 + .../projects/en/review-of-the-review.md | 14 ++++++++++++++ .../projects/fr/review-of-the-review.md | 14 ++++++++++++++ 4 files changed, 30 insertions(+) create mode 100644 src/collections/projects/en/review-of-the-review.md create mode 100644 src/collections/projects/fr/review-of-the-review.md diff --git a/src/admin/config.yml b/src/admin/config.yml index 306ce02..8f8789b 100644 --- a/src/admin/config.yml +++ b/src/admin/config.yml @@ -76,6 +76,7 @@ collections: extension: md create: true fields: + - { label: Layout, name: layout, widget: hidden, default: layouts/project.njk } - { label: Title, name: title, widget: string, i18n: true } - { label: Meta Excerpt (SEO), name: metaExcerpt, widget: text, i18n: true, required: false } - label: "Project Colour" diff --git a/src/assets/styles/components/_card.css b/src/assets/styles/components/_card.css index ff862a9..fd58a77 100644 --- a/src/assets/styles/components/_card.css +++ b/src/assets/styles/components/_card.css @@ -44,6 +44,7 @@ display: flex; flex-direction: column; gap: 0.93rem; + height: 100%; padding: 1.875rem; } diff --git a/src/collections/projects/en/review-of-the-review.md b/src/collections/projects/en/review-of-the-review.md new file mode 100644 index 0000000..74cc106 --- /dev/null +++ b/src/collections/projects/en/review-of-the-review.md @@ -0,0 +1,14 @@ +--- +title: Review of the Review +metaExcerpt: Review of the Review (RotR) is assisting Accessibility Standards Canada in developing standards development processes and activities that are accessible and inclusively designed. +projectColor: '' +desc: Review of the Review (RotR) is assisting Accessibility Standards Canada in developing standards development processes and activities that are accessible and inclusively designed. +layout: layouts/project +--- +## About + +Review of the Review (RotR) is assisting Accessibility Standards Canada in developing standards development processes and activities that are accessible and inclusively designed. + +The goal of the project was to review the approach to standards development from the preliminary stages through to public review and provide advice, guidance, and recommendations to improve inclusion and accessibility as well as foster co-development of the standards with communities most impacted by them. + +You can download the final report from [IDRC website](https://idrc.ocadu.ca/projects/rotr/). diff --git a/src/collections/projects/fr/review-of-the-review.md b/src/collections/projects/fr/review-of-the-review.md new file mode 100644 index 0000000..f0a272d --- /dev/null +++ b/src/collections/projects/fr/review-of-the-review.md @@ -0,0 +1,14 @@ +--- +title: Review of the Review +metaExcerpt: Review of the Review (RotR) is assisting Accessibility Standards Canada in developing standards development processes and activities that are accessible and inclusively designed. +projectColor: '' +desc: Review of the Review (RotR) is assisting Accessibility Standards Canada in developing standards development processes and activities that are accessible and inclusively designed. +layout: layouts/project +--- +## About + +Review of the Review (RotR) is assisting Accessibility Standards Canada in developing standards development processes and activities that are accessible and inclusively designed. + +The goal of the project was to review the approach to standards development from the preliminary stages through to public review and provide advice, guidance, and recommendations to improve inclusion and accessibility as well as foster co-development of the standards with communities most impacted by them. + +You can download the [final report ](https://idrc.ocadu.ca/media/a-review-of-the-standards-development-process-final.docx)at IDRC website. \ No newline at end of file From 7ccafa08799a16c3e56f17719db973a43682a2b0 Mon Sep 17 00:00:00 2001 From: Daniel Cho Date: Fri, 17 Jan 2025 17:34:33 -0500 Subject: [PATCH 2/3] fix: update based on PR feedback --- src/admin/config.yml | 1 - src/collections/projects/en/all-standards-with-us.md | 1 - src/collections/projects/en/review-of-the-review.md | 1 - src/collections/projects/fr/all-standards-with-us.md | 1 - src/collections/projects/fr/review-of-the-review.md | 1 - src/collections/projects/projects.11tydata.js | 1 + 6 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/admin/config.yml b/src/admin/config.yml index 8f8789b..306ce02 100644 --- a/src/admin/config.yml +++ b/src/admin/config.yml @@ -76,7 +76,6 @@ collections: extension: md create: true fields: - - { label: Layout, name: layout, widget: hidden, default: layouts/project.njk } - { label: Title, name: title, widget: string, i18n: true } - { label: Meta Excerpt (SEO), name: metaExcerpt, widget: text, i18n: true, required: false } - label: "Project Colour" diff --git a/src/collections/projects/en/all-standards-with-us.md b/src/collections/projects/en/all-standards-with-us.md index 91f63aa..35354a6 100644 --- a/src/collections/projects/en/all-standards-with-us.md +++ b/src/collections/projects/en/all-standards-with-us.md @@ -3,7 +3,6 @@ title: All Standards With Us metaExcerpt: This project makes standards development accessible to people with disabilities and Deaf individuals, ensuring goods and services are inclusive. We focus on removing barriers in Standards Development Organizations (SDOs) to support full participation. projectColor: yellow desc: This project makes standards development accessible to people with disabilities and Deaf individuals, ensuring goods and services are inclusive. We focus on removing barriers in Standards Development Organizations (SDOs) to support full participation. -layout: layouts/project --- ## About this project diff --git a/src/collections/projects/en/review-of-the-review.md b/src/collections/projects/en/review-of-the-review.md index 74cc106..4c59385 100644 --- a/src/collections/projects/en/review-of-the-review.md +++ b/src/collections/projects/en/review-of-the-review.md @@ -3,7 +3,6 @@ title: Review of the Review metaExcerpt: Review of the Review (RotR) is assisting Accessibility Standards Canada in developing standards development processes and activities that are accessible and inclusively designed. projectColor: '' desc: Review of the Review (RotR) is assisting Accessibility Standards Canada in developing standards development processes and activities that are accessible and inclusively designed. -layout: layouts/project --- ## About diff --git a/src/collections/projects/fr/all-standards-with-us.md b/src/collections/projects/fr/all-standards-with-us.md index 1e2f5e6..7956812 100644 --- a/src/collections/projects/fr/all-standards-with-us.md +++ b/src/collections/projects/fr/all-standards-with-us.md @@ -3,7 +3,6 @@ title: All Standards With Us FR metaExcerpt: This project makes standards development accessible to people with disabilities and Deaf individuals, ensuring goods and services are inclusive. We focus on removing barriers in Standards Development Organizations (SDOs) to support full participation. projectColor: yellow desc: This project makes standards development accessible to people with disabilities and Deaf individuals, ensuring goods and services are inclusive. We focus on removing barriers in Standards Development Organizations (SDOs) to support full participation. -layout: layouts/project --- ## About this project diff --git a/src/collections/projects/fr/review-of-the-review.md b/src/collections/projects/fr/review-of-the-review.md index f0a272d..b19a411 100644 --- a/src/collections/projects/fr/review-of-the-review.md +++ b/src/collections/projects/fr/review-of-the-review.md @@ -3,7 +3,6 @@ title: Review of the Review metaExcerpt: Review of the Review (RotR) is assisting Accessibility Standards Canada in developing standards development processes and activities that are accessible and inclusively designed. projectColor: '' desc: Review of the Review (RotR) is assisting Accessibility Standards Canada in developing standards development processes and activities that are accessible and inclusively designed. -layout: layouts/project --- ## About diff --git a/src/collections/projects/projects.11tydata.js b/src/collections/projects/projects.11tydata.js index c408b85..cac8de9 100644 --- a/src/collections/projects/projects.11tydata.js +++ b/src/collections/projects/projects.11tydata.js @@ -2,6 +2,7 @@ import { __, generatePermalink } from "eleventy-plugin-fluid"; export default { eleventyComputed: { + layout: "layouts/project", permalink: (data) => { if (data.link) { return null; From 6cf8cc0c70c8144455bbc2199e4207dcaedd81eb Mon Sep 17 00:00:00 2001 From: Daniel Cho Date: Fri, 17 Jan 2025 17:34:55 -0500 Subject: [PATCH 3/3] fix: project panel margin --- src/assets/styles/components/_project-panel.css | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/assets/styles/components/_project-panel.css b/src/assets/styles/components/_project-panel.css index 1cd9635..fa00857 100644 --- a/src/assets/styles/components/_project-panel.css +++ b/src/assets/styles/components/_project-panel.css @@ -17,6 +17,11 @@ div:has(.project-panel) { position: relative; max-width: 75rem; margin-inline: auto; + margin-block-end: 2rem; +} + +.project-panel:last-of-type { + margin-block-end: unset; } .project-panel a {