From 61ff8948b560969ded1ad6c58f7cc8865cc23bca Mon Sep 17 00:00:00 2001 From: Ned Zimmerman Date: Thu, 16 May 2024 11:04:24 -0300 Subject: [PATCH] fix: don't generate pages for resources (resolves #921) (#922) --- src/admin/config.yml | 1 - src/collections/resources/clusive.md | 3 +-- src/collections/resources/community-led-co-design-kit.md | 3 +-- src/collections/resources/inclusive-design-guide.md | 1 - .../resources/inclusive-learning-design-handbook.md | 1 - src/collections/resources/infusion.md | 3 +-- src/collections/resources/make-your-web-content-accessible.md | 4 +--- src/collections/resources/morphic.md | 3 +-- src/collections/resources/resources.json | 4 +--- src/collections/resources/storytelling-tool.md | 3 +-- src/collections/resources/ui-options.md | 1 - src/collections/resources/weavly.md | 1 - 12 files changed, 7 insertions(+), 21 deletions(-) diff --git a/src/admin/config.yml b/src/admin/config.yml index 16735371..0fa2a72d 100644 --- a/src/admin/config.yml +++ b/src/admin/config.yml @@ -465,7 +465,6 @@ collections: create: true i18n: false fields: - - {label: Layout, name: layout, widget: hidden, default: layouts/single--resource.njk} - {label: Resource Name, name: title, widget: string, required: true} - {label: Description, name: description, widget: markdown, required: true, editor_components: [image, file]} - {label: Published Year, name: publishedYear, widget: string, hint: The year this resource was first publicly available., required: true} diff --git a/src/collections/resources/clusive.md b/src/collections/resources/clusive.md index d7229b95..c334b576 100644 --- a/src/collections/resources/clusive.md +++ b/src/collections/resources/clusive.md @@ -1,5 +1,4 @@ --- -layout: layouts/resources.njk title: Clusive description: Clusive is a flexible, customizable learning environment that adapts to learners' needs. @@ -9,5 +8,5 @@ topics: - education types: - webApp -link: " https://clusive.cast.org/" +link: https://clusive.cast.org/ --- diff --git a/src/collections/resources/community-led-co-design-kit.md b/src/collections/resources/community-led-co-design-kit.md index 334afc43..04d05aaf 100644 --- a/src/collections/resources/community-led-co-design-kit.md +++ b/src/collections/resources/community-led-co-design-kit.md @@ -1,5 +1,4 @@ --- -layout: layouts/resources.njk title: Community-led Co-design Kit description: A toolkit for how to do co-design, especially co-design that is led by communities it most impacts. @@ -9,5 +8,5 @@ topics: - design types: - toolkit -link: " https://co-design.inclusivedesign.ca/" +link: https://co-design.inclusivedesign.ca/ --- diff --git a/src/collections/resources/inclusive-design-guide.md b/src/collections/resources/inclusive-design-guide.md index e0649527..9bf58b93 100644 --- a/src/collections/resources/inclusive-design-guide.md +++ b/src/collections/resources/inclusive-design-guide.md @@ -1,5 +1,4 @@ --- -layout: layouts/resources.njk title: Inclusive Design Guide description: A guide that provides design insights, activities, tools, and practices to aid in the designing of services, environments, and physical diff --git a/src/collections/resources/inclusive-learning-design-handbook.md b/src/collections/resources/inclusive-learning-design-handbook.md index abbc834c..27ba0e8b 100644 --- a/src/collections/resources/inclusive-learning-design-handbook.md +++ b/src/collections/resources/inclusive-learning-design-handbook.md @@ -1,5 +1,4 @@ --- -layout: layouts/resources.njk title: Inclusive Learning Design Handbook description: A handbook to help people create personalized and flexible educational resources for diverse learners. diff --git a/src/collections/resources/infusion.md b/src/collections/resources/infusion.md index 760ab377..2f04802a 100644 --- a/src/collections/resources/infusion.md +++ b/src/collections/resources/infusion.md @@ -1,5 +1,4 @@ --- -layout: layouts/resources.njk title: Infusion description: An accessible and highly configurable web framework that supports inclusive design. @@ -9,5 +8,5 @@ topics: - design types: - code -link: " https://fluidproject.org/infusion.html" +link: https://fluidproject.org/infusion.html --- diff --git a/src/collections/resources/make-your-web-content-accessible.md b/src/collections/resources/make-your-web-content-accessible.md index 278b763e..1a96f66b 100644 --- a/src/collections/resources/make-your-web-content-accessible.md +++ b/src/collections/resources/make-your-web-content-accessible.md @@ -1,5 +1,4 @@ --- -layout: layouts/resources.njk title: Make your web content accessible description: A course that covers what accessibility means on the web, how to create accessible web content, how to test it, and the principles of @@ -11,6 +10,5 @@ topics: - design types: - onlineCourse -link: " https://openclassrooms.com/en/courses/6663451-make-your-web-content-ac\ - cessible" +link: https://openclassrooms.com/en/courses/6663451-make-your-web-content-accessible --- diff --git a/src/collections/resources/morphic.md b/src/collections/resources/morphic.md index f73a892f..5e130679 100644 --- a/src/collections/resources/morphic.md +++ b/src/collections/resources/morphic.md @@ -1,5 +1,4 @@ --- -layout: layouts/resources.njk title: Morphic description: A centralized tool bar that allows users to easily access and customize the accessibility preferences on their computer, and export it to @@ -10,5 +9,5 @@ topics: - design types: - plugin -link: " https://morphic.org" +link: https://morphic.org --- diff --git a/src/collections/resources/resources.json b/src/collections/resources/resources.json index 5f6eb31d..bb24e7d5 100644 --- a/src/collections/resources/resources.json +++ b/src/collections/resources/resources.json @@ -1,5 +1,3 @@ { - "layout": "layouts/single--resource.njk", - "permalink": "/resources/{{ page.fileSlug | slugify }}/", - "headerBgColor": "white" + "permalink": false } diff --git a/src/collections/resources/storytelling-tool.md b/src/collections/resources/storytelling-tool.md index cd8b4ffe..11981c56 100644 --- a/src/collections/resources/storytelling-tool.md +++ b/src/collections/resources/storytelling-tool.md @@ -1,5 +1,4 @@ --- -layout: layouts/resources.njk title: Storytelling Tool description: A tool to allow people of all abilities to share their stories using text, video, audio, and images. @@ -9,5 +8,5 @@ topics: - design types: - webApp -link: " https://stories.floeproject.org/" +link: https://stories.floeproject.org/ --- diff --git a/src/collections/resources/ui-options.md b/src/collections/resources/ui-options.md index cf32c89d..867053da 100644 --- a/src/collections/resources/ui-options.md +++ b/src/collections/resources/ui-options.md @@ -1,5 +1,4 @@ --- -layout: layouts/resources.njk title: UI Options description: A tool to adapt the user interface of websites to meet diverse and variable personal needs. diff --git a/src/collections/resources/weavly.md b/src/collections/resources/weavly.md index 1cf9c800..db879980 100644 --- a/src/collections/resources/weavly.md +++ b/src/collections/resources/weavly.md @@ -1,5 +1,4 @@ --- -layout: layouts/resources.njk title: Weavly description: An educational coding tool for kids who have been left out of learning—especially those with complex needs. Weavly also includes activities