diff --git a/src/_includes/layouts/base.njk b/src/_includes/layouts/base.njk index 7ddd2f4..a3739dc 100644 --- a/src/_includes/layouts/base.njk +++ b/src/_includes/layouts/base.njk @@ -19,7 +19,7 @@ {% if bannerImage %} {% endif %} diff --git a/src/_includes/partials/global/meta.njk b/src/_includes/partials/global/meta.njk index 5832f76..debbaf0 100644 --- a/src/_includes/partials/global/meta.njk +++ b/src/_includes/partials/global/meta.njk @@ -7,3 +7,5 @@ + + diff --git a/src/admin/config.yml b/src/admin/config.yml index 1b2de92..28d749e 100644 --- a/src/admin/config.yml +++ b/src/admin/config.yml @@ -91,7 +91,22 @@ collections: } - { label: Banner Image Alt Text, - name: bannerImageAltText, + name: bannerImageAlt, + widget: string, + i18n: true, + required: false, + } + - { + label: "Social Image", + name: metaImage, + widget: image, + i18n: duplicate, + required: false, + hint: "This image should be 1200 by 630 pixels and will be used as a preview image when this page is shared on social media.", + } + - { + label: Social Image Alt Text, + name: socialImageAlt, widget: string, i18n: true, required: false, @@ -145,6 +160,21 @@ collections: i18n: true, required: false, } + - { + label: "Social Image", + name: metaImage, + widget: image, + i18n: duplicate, + required: false, + hint: "This image should be 1200 by 630 pixels and will be used as a preview image when this page is shared on social media.", + } + - { + label: Social Image Alt Text, + name: socialImageAlt, + widget: string, + i18n: true, + required: false, + } - { label: "Description", name: desc, diff --git a/src/assets/images/social-en.png b/src/assets/images/social-en.png new file mode 100644 index 0000000..85c1a52 Binary files /dev/null and b/src/assets/images/social-en.png differ diff --git a/src/assets/images/social-fr.png b/src/assets/images/social-fr.png new file mode 100644 index 0000000..282be7c Binary files /dev/null and b/src/assets/images/social-fr.png differ diff --git a/src/collections/pages/en/index.md b/src/collections/pages/en/index.md index 2f56ce5..b4d699c 100644 --- a/src/collections/pages/en/index.md +++ b/src/collections/pages/en/index.md @@ -3,7 +3,7 @@ title: Inclusive Standards order: 0 hasBanner: true bannerImage: /assets/uploads/homeBanner.png -bannerImageAltText: Three individuals with different needs are moving together +bannerImageAlt: Three individuals with different needs are moving together bannerBgColor: indigo-700 bannerTitle: '**Inclusive** Standards' bannerBody: Inclusive Standards is a project hub of the Inclusive Design Research Centre (IDRC). Here, we gather all our efforts related to inclusive standards development. Our work ranges from conducting research with the disability community to inform standards development, drafting seed standards, and actively participating in standards development committees. diff --git a/src/collections/pages/fr/index.md b/src/collections/pages/fr/index.md index 340f51f..4be8bfa 100644 --- a/src/collections/pages/fr/index.md +++ b/src/collections/pages/fr/index.md @@ -3,7 +3,7 @@ title: Normes inclusives order: 0 hasBanner: true bannerImage: /assets/uploads/homeBanner.png -bannerImageAltText: Three individuals with different needs are moving together +bannerImageAlt: Trois personnes ayant des besoins différents se déplacent ensemble bannerBgColor: indigo-700 bannerTitle: Normes **inclusives** bannerBody: Normes inclusives est un centre de projet du Centre de recherche sur la conception inclusive (IDRC). Ici, nous rassemblons tous nos efforts liés au développement de normes inclusives. Notre travail consiste à mener des recherches auprès de la communauté des personnes handicapées pour éclairer l’élaboration de normes, à rédiger des normes de base et à participer activement aux comités d’élaboration de normes.