diff --git a/.markdownlint-cli2.cjs b/.markdownlint-cli2.cjs
index 12c86aa..d15f50a 100644
--- a/.markdownlint-cli2.cjs
+++ b/.markdownlint-cli2.cjs
@@ -1,4 +1,4 @@
module.exports = {
config: require("./node_modules/markdownlint-config-fluid/.markdownlintrc.json"),
- ignores: ["node_modules", "src/collections", "CHANGELOG.md"]
+ ignores: ["node_modules", "src/collections/**/*.md", "CHANGELOG.md"]
};
diff --git a/eleventy.config.js b/eleventy.config.js
index bdcb9c5..3c07972 100644
--- a/eleventy.config.js
+++ b/eleventy.config.js
@@ -11,11 +11,11 @@ export default function eleventy(eleventyConfig) {
eleventyConfig.addPlugin(fluidPlugin, {
defaultLanguage: "en",
supportedLanguages: {
- "en-CA": {
+ en: {
slug: "en",
name: "English"
},
- "fr-CA": {
+ fr: {
slug: "fr",
name: "Français",
dir: "ltr",
diff --git a/src/_includes/layouts/base.njk b/src/_includes/layouts/base.njk
index d1d088b..7999cb5 100644
--- a/src/_includes/layouts/base.njk
+++ b/src/_includes/layouts/base.njk
@@ -14,7 +14,7 @@
{% if hasBanner %}
-
{{ bannerTitle | safe }}
+ {{ bannerTitle | renderContent('md') | safe }}
{{ bannerBody }}
{% if bannerImage %}
diff --git a/src/_includes/partials/components/navigation.njk b/src/_includes/partials/components/navigation.njk
index 02e4a4b..c100a9c 100644
--- a/src/_includes/partials/components/navigation.njk
+++ b/src/_includes/partials/components/navigation.njk
@@ -2,16 +2,15 @@
diff --git a/src/_includes/partials/global/header.njk b/src/_includes/partials/global/header.njk
index aa0fc8a..c7ce5f1 100644
--- a/src/_includes/partials/global/header.njk
+++ b/src/_includes/partials/global/header.njk
@@ -8,10 +8,10 @@
@@ -23,10 +23,10 @@
diff --git a/src/admin/admin.njk b/src/admin/admin.njk
new file mode 100644
index 0000000..7f6a7e6
--- /dev/null
+++ b/src/admin/admin.njk
@@ -0,0 +1,16 @@
+---
+permalink: '/admin/index.html'
+eleventyExcludeFromCollections: true
+locale: en
+---
+
+
+
+
+
+
Content Manager
+
+
+
+
+
diff --git a/src/admin/config.yml b/src/admin/config.yml
new file mode 100644
index 0000000..44b22d1
--- /dev/null
+++ b/src/admin/config.yml
@@ -0,0 +1,53 @@
+backend:
+ name: github
+ branch: main
+ repo: inclusive-design/standards.inclusivedesign.ca
+ base_url: https://auth.incd.ca
+media_folder: src/assets/uploads
+public_folder: /assets/uploads
+
+editor:
+ preview: false
+i18n:
+ locales: [en, fr]
+ default_locale: en
+
+collections:
+ - label: Pages
+ label_singular: Page
+ name: pages
+ icon: article
+ i18n:
+ structure: multiple_folders
+ folder: src/collections/pages/
+ extension: md
+ create: true
+ fields:
+ - { label: Title, name: title, widget: string, i18n: true }
+ - { label: Navigation Order, name: order, widget: number, i18n: copy }
+ - { label: "Has Banner?", name: hasBanner, widget: boolean, i18n: copy }
+ - label: "Banner Background"
+ name: bannerBgColor
+ widget: select
+ options:
+ - label: Dark Grey
+ value: dark-grey
+ - label: Indigo 700
+ value: indigo-700
+ i18n: copy
+ required: false
+ - {
+ label: "Banner Title",
+ name: bannerTitle,
+ widget: string,
+ i18n: true,
+ required: false,
+ }
+ - {
+ label: "Banner Body",
+ name: bannerBody,
+ widget: string,
+ i18n: true,
+ required: false,
+ }
+ - { label: Body, name: body, widget: markdown, i18n: true }
diff --git a/src/collections/pages/en/about.md b/src/collections/pages/en/about.md
index 05267d9..fbf993e 100644
--- a/src/collections/pages/en/about.md
+++ b/src/collections/pages/en/about.md
@@ -1,10 +1,7 @@
---
title: About
-eleventyNavigation:
- locale: en-CA
- key: About
- order: 1
layout: layouts/about
+order: 1
hasBanner: true
bannerBgColor: dark-grey
bannerTitle: About
@@ -26,3 +23,14 @@ necessitatibus eligendi aut corrupti nisi quo voluptatum impedit. Nam dolor dele
cum libero provident est Quis voluptatem non ipsa ullam vel iure autem. Quo facilis reprehenderit in atque deleniti
qui facilis vitae sit officia galisum. Quo laboriosam consequatur sed fugit voluptas id quibusdam galisum sit
explicabo modi sit mollitia placeat hic laboriosam omnis.
+=======
+layout: layouts/about
+---
+## Making Standards Accessible
+
+Lorem ipsum dolor sit amet. Ea galisum quisquam aut galisum aperiam eum dolores consequuntur et fugit rerum ut necessitatibus eligendi aut corrupti nisi quo voluptatum impedit. Nam dolor delectus non sapiente vero sit sint esse cum libero provident est Quis voluptatem non ipsa ullam vel iure autem. Quo facilis reprehenderit in atque deleniti qui facilis vitae sit officia galisum. Quo laboriosam consequatur sed fugit voluptas id quibusdam galisum sit explicabo modi sit mollitia placeat hic laboriosam omnis.
+
+## What We Do
+
+Lorem ipsum dolor sit amet. Ea galisum quisquam aut galisum aperiam eum dolores consequuntur et fugit rerum ut necessitatibus eligendi aut corrupti nisi quo voluptatum impedit. Nam dolor delectus non sapiente vero sit sint esse cum libero provident est Quis voluptatem non ipsa ullam vel iure autem. Quo facilis reprehenderit in atque deleniti qui facilis vitae sit officia galisum. Quo laboriosam consequatur sed fugit voluptas id quibusdam galisum sit explicabo modi sit mollitia placeat hic laboriosam omnis.
+>>>>>>> a3333c6 (feat: some adjustments to localization approach)
diff --git a/src/collections/pages/en/en.json b/src/collections/pages/en/en.json
index 495497b..5b081b7 100644
--- a/src/collections/pages/en/en.json
+++ b/src/collections/pages/en/en.json
@@ -1,4 +1,3 @@
{
- "lang": "en",
- "locale": "en-CA"
+ "lang": "en"
}
diff --git a/src/collections/pages/en/index.md b/src/collections/pages/en/index.md
index 4f5075c..11427e0 100644
--- a/src/collections/pages/en/index.md
+++ b/src/collections/pages/en/index.md
@@ -1,8 +1,11 @@
---
title: Inclusive Standards
layout: layouts/home
+order: 0
hasBanner: true
bannerBgColor: indigo-700
-bannerTitle:
Inclusive Standards
+bannerTitle: "**Inclusive** Standards"
bannerBody: Inclusive Standards is a project led by the Inclusive Design Centre, dedicated to creating guidelines that ensure products, services, and environments are accessible and usable by everyone. We focus on promoting equity, diversity, and inclusion by developing standards that meet the needs of all individuals, including people with disabilities and marginalized communities.
+layout: layouts/base
---
+Not applicable.
diff --git a/src/collections/pages/en/projects.md b/src/collections/pages/en/projects.md
index 19fde6b..fe30bdd 100644
--- a/src/collections/pages/en/projects.md
+++ b/src/collections/pages/en/projects.md
@@ -1,12 +1,10 @@
---
title: Projects
-eleventyNavigation:
- locale: en-CA
- key: Projects
- order: 1
-layout: layouts/projects
+order: 2
hasBanner: true
bannerBgColor: dark-grey
bannerTitle: Projects
bannerBody: Projects showcase all the Inclusive Standards Projects currently being investigated by IDRC
----
\ No newline at end of file
+layout: layouts/projects
+---
+Not applicable.
diff --git a/src/collections/pages/fr/about.md b/src/collections/pages/fr/about.md
index 5e881c4..867a04e 100644
--- a/src/collections/pages/fr/about.md
+++ b/src/collections/pages/fr/about.md
@@ -1,27 +1,15 @@
---
title: À propos
-eleventyNavigation:
- locale: fr-CA
- key: À propos
- order: 1
layout: layouts/about
hasBanner: true
bannerBgColor: dark-grey
-bannerTitle: About
-bannerBody: Learn more about Inclusive standards
+bannerTitle: À propos
+bannerBody: En savoir plus sur les normes inclusives
---
-## Making Standards Accessible
+## Rendre les normes accessibles
-Lorem ipsum dolor sit amet. Ea galisum quisquam aut galisum aperiam eum dolores consequuntur et fugit rerum ut
-necessitatibus eligendi aut corrupti nisi quo voluptatum impedit. Nam dolor delectus non sapiente vero sit sint esse
-cum libero provident est Quis voluptatem non ipsa ullam vel iure autem. Quo facilis reprehenderit in atque deleniti
-qui facilis vitae sit officia galisum. Quo laboriosam consequatur sed fugit voluptas id quibusdam galisum sit
-explicabo modi sit mollitia placeat hic laboriosam omnis.
+Lorem ipsum dolor sit amet. Ea galisum quisquam aut galisum aperiam eum dolores consequuntur et fugit rerum ut necessitatibus eligendi aut corrupti nisi quo voluptatum impedit. Nam dolor delectus non sapiente vero sit sint esse cum libero provident est Quis voluptatem non ipsa ullam vel iure autem. Quo facilis reprehenderit in atque deleniti qui facilis vitae sit officia galisum. Quo laboriosam consequatur sed fugit voluptas id quibusdam galisum sit explicabo modi sit mollitia placeat hic laboriosam omnis.
-## What do we do?
+## Ce que nous faisons
-Lorem ipsum dolor sit amet. Ea galisum quisquam aut galisum aperiam eum dolores consequuntur et fugit rerum ut
-necessitatibus eligendi aut corrupti nisi quo voluptatum impedit. Nam dolor delectus non sapiente vero sit sint esse
-cum libero provident est Quis voluptatem non ipsa ullam vel iure autem. Quo facilis reprehenderit in atque deleniti
-qui facilis vitae sit officia galisum. Quo laboriosam consequatur sed fugit voluptas id quibusdam galisum sit
-explicabo modi sit mollitia placeat hic laboriosam omnis.
+Lorem ipsum dolor sit amet. Ea galisum quisquam aut galisum aperiam eum dolores consequuntur et fugit rerum ut necessitatibus eligendi aut corrupti nisi quo voluptatum impedit. Nam dolor delectus non sapiente vero sit sint esse cum libero provident est Quis voluptatem non ipsa ullam vel iure autem. Quo facilis reprehenderit in atque deleniti qui facilis vitae sit officia galisum. Quo laboriosam consequatur sed fugit voluptas id quibusdam galisum sit explicabo modi sit mollitia placeat hic laboriosam omnis.
diff --git a/src/collections/pages/fr/fr.json b/src/collections/pages/fr/fr.json
index 6df23b4..c7a37af 100644
--- a/src/collections/pages/fr/fr.json
+++ b/src/collections/pages/fr/fr.json
@@ -1,4 +1,3 @@
{
- "lang": "fr",
- "locale": "fr-CA"
+ "lang": "fr"
}
diff --git a/src/collections/pages/fr/index.md b/src/collections/pages/fr/index.md
index 20879eb..ef2b25c 100644
--- a/src/collections/pages/fr/index.md
+++ b/src/collections/pages/fr/index.md
@@ -1,4 +1,8 @@
---
-title: Inclusive Standards
+title: Normes inclusives
+bannerTitle: Normes inclusives
+bannerBody: Normes inclusives est un projet mené par la Centre de Recherche pour une Conception Inclusive, qui se consacre à l'élaboration de lignes directrices garantissant que les produits, les services et les environnements sont accessibles et utilisables par tous. Nous nous attachons à promouvoir l'équité, la diversité et l'inclusion en élaborant des normes qui répondent aux besoins de tous les individus, y compris les personnes handicapées et les communautés marginalisées.
layout: layouts/home
----
\ No newline at end of file
+order: 0
+---
+Not applicable.
diff --git a/src/collections/pages/fr/projects.md b/src/collections/pages/fr/projects.md
index 92208e1..40965bb 100644
--- a/src/collections/pages/fr/projects.md
+++ b/src/collections/pages/fr/projects.md
@@ -1,12 +1,9 @@
---
title: Projets
-eleventyNavigation:
- locale: fr-CA
- key: Projets
- order: 1
-layout: layouts/projects
hasBanner: true
bannerBgColor: dark-grey
-bannerTitle: Projects
-bannerBody: Projects showcase all the Inclusive Standards Projects currently being investigated by IDRC
----
\ No newline at end of file
+bannerTitle: Projets
+bannerBody: Les projets présentent tous les projets de normes inclusives actuellement étudiés par le CRDI.
+layout: layouts/projects
+---
+Not applicable.
diff --git a/src/collections/pages/pages.11tydata.js b/src/collections/pages/pages.11tydata.js
index c0d6107..994c671 100644
--- a/src/collections/pages/pages.11tydata.js
+++ b/src/collections/pages/pages.11tydata.js
@@ -3,5 +3,17 @@ import { generatePermalink } from "eleventy-plugin-fluid";
export default {
permalink: (data) => {
return generatePermalink(data, "pages");
+ },
+ eleventyComputed: {
+ eleventyNavigation: (data) => {
+ if (data.order === 0) {
+ return false;
+ }
+
+ return {
+ key: data.title,
+ order: data.order
+ };
+ }
}
};