diff --git a/_data/templates.json b/_data/templates.json index fc09f38246..d3cbb71e19 100644 --- a/_data/templates.json +++ b/_data/templates.json @@ -864,206 +864,6 @@ ] } } -,{ - "@context": { - "@version": 1.1, - "dct": "http://purl.org/dc/terms/", - "title": { "@id": "dct:title", "@container": "@language" }, - "description": { "@id": "dct:description", "@container": "@language" }, - "modified": "dct:modified" - }, - "title": { - "en": "Lowest topic (with secondary navigation)", - "fr": "Sujet de plus bas niveau (avec une navigation secondaire" - }, - "description": { - "en": "Template sample with a local navigation and a lowest topic page", - "fr": "Example de gabarit avec une navigation local et une page de sujet de plus bas niveau" - }, - "modified": "2023-08-30", - "componentName": "lowest-topic", - "status": "deprecated", - "pages": { - "examples": [ - { - "title": "[Topic - Secondary/Local navigation]", - "language": "en", - "path": "index-en.html" - }, - { - "title": "[Sujet - Navigation secondaire/locale]", - "language": "fr", - "path": "index-fr.html" - }, - - { - "title": "Task 1", - "language": "en", - "path": "task1/index-en.html" - }, - { - "title": "Tâche 1", - "language": "fr", - "path": "task1/index-fr.html" - }, - - { - "title": "Sub task 1", - "language": "en", - "path": "task1/task1/index-en.html" - }, - { - "title": "Sub tâche 1", - "language": "fr", - "path": "task1/task1/index-fr.html" - }, - { - "title": "Sub task 2", - "language": "en", - "path": "task1/task2/index-en.html" - }, - { - "title": "Sub tâche 2", - "language": "fr", - "path": "task1/task2/index-fr.html" - }, - { - "title": "Sub task 3", - "language": "en", - "path": "task1/task3/index-en.html" - }, - { - "title": "Sub tâche 3", - "language": "fr", - "path": "task1/task3/index-fr.html" - }, - { - "title": "Sub task 4", - "language": "en", - "path": "task1/task4/index-en.html" - }, - { - "title": "Sub tâche 4", - "language": "fr", - "path": "task1/task4/index-fr.html" - }, - { - "title": "Sub task 5", - "language": "en", - "path": "task1/task5/index-en.html" - }, - { - "title": "Sub tâche 5", - "language": "fr", - "path": "task1/task5/index-fr.html" - }, - { - "title": "Sub task 6", - "language": "en", - "path": "task1/task6/index-en.html" - }, - { - "title": "Sub tâche 6", - "language": "fr", - "path": "task1/task6/index-fr.html" - }, - { - "title": "Sub task 7", - "language": "en", - "path": "task1/task7/index-en.html" - }, - { - "title": "Sub tâche 7", - "language": "fr", - "path": "task1/task7/index-fr.html" - }, - - { - "title": "Task 2", - "language": "en", - "path": "task2/index-en.html" - }, - { - "title": "Tâche 2", - "language": "fr", - "path": "task2/index-fr.html" - }, - - { - "title": "Task 3", - "language": "en", - "path": "task3/index-en.html" - }, - { - "title": "Tâche 3", - "language": "fr", - "path": "task3/index-fr.html" - }, - - { - "title": "Sub task 1", - "language": "en", - "path": "task3/task1/index-en.html" - }, - { - "title": "Sub tâche 1", - "language": "fr", - "path": "task3/task1/index-fr.html" - }, - { - "title": "Sub task 2", - "language": "en", - "path": "task3/task2/index-en.html" - }, - { - "title": "Sub tâche 2", - "language": "fr", - "path": "task3/task2/index-fr.html" - }, - { - "title": "Sub sub task 1", - "language": "en", - "path": "task3/task2/task1/index-en.html" - }, - { - "title": "Sub sub tâche 1", - "language": "fr", - "path": "task3/task2/task1/index-fr.html" - }, - { - "title": "Sub sub task 2", - "language": "en", - "path": "task3/task2/task2/index-en.html" - }, - { - "title": "Sub sub tâche 2", - "language": "fr", - "path": "task3/task2/task2/index-fr.html" - }, - { - "title": "Sub task 3", - "language": "en", - "path": "task3/task3/index-en.html" - }, - { - "title": "Sub tâche 3", - "language": "fr", - "path": "task3/task3/index-fr.html" - }, - - { - "title": "Task 4", - "language": "en", - "path": "task4/index-en.html" - }, - { - "title": "Tâche 4", - "language": "fr", - "path": "task4/index-fr.html" - } - ] - } -} ,{ "@context": { "@version": 1.1, @@ -1469,40 +1269,6 @@ ] } } -,{ - "@context": { - "@version": 1.1, - "dct": "http://purl.org/dc/terms/", - "title": { "@id": "dct:title", "@container": "@language" }, - "description": { "@id": "dct:description", "@container": "@language" }, - "modified": "dct:modified" - }, - "title": { - "en": "Beta - Theme, Topic", - "fr": "Béta - Thèmatique et sujet" - }, - "description": { - "en": "Theme, Topic beta templates", - "fr": "Gabarit béta du thèmatique et sujet" - }, - "modified": "2020-02-12", - "componentName": "theme-topic", - "status": "provisional", - "pages": { - "examples": [ - { - "title": "[Theme - Topic title]", - "language": "en", - "path": "theme-topic-en.html" - }, - { - "title": "[Titre du thème ou du sujet]", - "language": "fr", - "path": "theme-topic-fr.html" - } - ] - } -} ,{ "@context": { "@version": 1.1, @@ -1519,9 +1285,10 @@ "en": "Topic template examples", "fr": "Exemples de page de sujets" }, - "modified": "2020-04-06", + "modified": "2024-06-10", "componentName": "topic", "status": "stable", + "version": "2.0", "pages": { "examples": [ { @@ -1535,18 +1302,235 @@ "path": "topic-fr.html" }, { - "title": "[Topic title, test case 1]", + "title": "Theme/Topic page - Demoted", + "language": "en", + "path": "demoted/theme-topic-en.html" + }, + { + "title": "Page de sujet/thème - Rétrogradée", + "language": "fr", + "path": "demoted/theme-topic-fr.html" + }, + { + "title": "Lowest topic (with secondary navigation) - Deprecated", "language": "en", - "path": "topic-testcase-1-en.html", - "description": "Special test case of a topic pages where the service and information section take less heigh space compared to most request and contributor section on the right column." + "path": "../lowest-topic/index-en.html" }, { - "title": "[Titre du sujet, cas d'essaie 1]", + "title": "Sujet de plus bas niveau (avec une navigation secondaire) - Dépréciée", "language": "fr", - "path": "topic-testcase-1-fr.html", - "description": "Cas d'essaie spécial de la page de sujet lorsque la hauteur du contenu pour la section service et renseignements est plus petite que la section en demande et collaborateurs dans la colonne de droite." + "path": "../lowest-topic/index-fr.html" + } + ], + "docs": [ + { + "title": "Topic page template", + "language": "en", + "path": "topic-doc-en.html" + }, + { + "title": "Gabarit de page de sujet", + "language": "fr", + "path": "topic-doc-fr.html" } ] - } + }, + "dependencies": { + "en": [ + { "title": "Intro block", "url": "https://wet-boew.github.io/GCWeb/design-patterns/gc-intro/gc-intro-doc-en.html", "component": "gc-intro" }, + { "title": "Most requested", "url": "https://wet-boew.github.io/GCWeb/components/gc-most-requested/gc-most-requested-doc-en.html", "component": "gc-most-requested" }, + { "title": "Services and information", "url": "https://wet-boew.github.io/GCWeb/components/gc-srvinfo/gc-srvinfo-doc-en.html", "component": "gc-srvinfo" }, + { "title": "Context-specific features", "url": "https://wet-boew.github.io/GCWeb/components/gc-features/gc-features-doc-en.html", "component": "gc-features" }, + { "title": "Social media channels", "url": "https://wet-boew.github.io/GCWeb/components/gc-follow-us/gc-follow-us-doc-en.html", "component": "gc-follow-us" }, + { "title": "Contributors", "url": "https://wet-boew.github.io/GCWeb/components/gc-contributors/gc-contributors-doc-en.html", "component": "gc-contributors" } + ], + "fr": [ + { "title": "Bloc d'introduction", "url": "https://wet-boew.github.io/GCWeb/design-patterns/gc-intro/gc-intro-doc-fr.html", "component": "gc-intro" }, + { "title": "En demande", "url": "https://wet-boew.github.io/GCWeb/components/gc-most-requested/gc-most-requested-doc-fr.html", "component": "gc-most-requested" }, + { "title": "Services et renseignements", "url": "https://wet-boew.github.io/GCWeb/components/gc-srvinfo/gc-srvinfo-doc-fr.html", "component": "gc-srvinfo" }, + { "title": "Promotions contextuelles", "url": "https://wet-boew.github.io/GCWeb/components/gc-features/gc-features-doc-fr.html", "component": "gc-features" }, + { "title": "Bloc des réseaux de médias sociaux", "url": "https://wet-boew.github.io/GCWeb/components/gc-follow-us/gc-follow-us-doc-fr.html", "component": "gc-follow-us" }, + { "title": "Collaborateurs", "url": "https://wet-boew.github.io/GCWeb/components/gc-contributors/gc-contributors-doc-fr.html", "component": "gc-contributors" } + ] + }, + "a11yGuidance": "No accessibility guidance.", + "variations": [ + { + "name": { + "en": "Topic page", + "fr": "Page de sujet" + }, + "status": "stable", + "description": { + "en": "Topic pages provide access to topics and destination pages that support task completion.", + "fr": "Les pages de sujet fournissent un accès aux sujets et aux pages de destination qui appuient l’achèvement des tâches." + }, + "guidance": { + "en": "https://design.canada.ca/mandatory-templates/theme-topic.html", + "fr": "https://conception.canada.ca/modeles-obligatoire/theme-sujet.html" + }, + "iteration": "_:iteration_topic_3", + "example": [ + { + "en": { "href": "topic-en.html", "text": "Topic page" }, + "fr": { "href": "topic-fr.html", "text": "Page de sujet" } + } + ], + "implementation": [ + "_:implement_topic", + "_:implement_topic_aem", + "_:implement_topic_1_to_2" + ], + "history": [ + { + "en": "June 2024 - Stabilization of the version 2 of the page template.", + "fr": "Juin 2024 - Stabilisation de la version 2 du gabarit de page." + }, + { + "en": "January 2021 - Provisional implementation of the version 2 of the page template.", + "fr": "Janvier 2021 - Implémentation provisoire de la version 2 du gabarit de page." + }, + { + "en": "As per January 2018's template - Implementation of the version 1 of the page template.", + "fr": "Selon le gabarit en date de Janvier 2018 - Implémentation de la version 1 du gabarit de page." + } + ] + } + ], + "implementation": [ + { + "@id": "_:implement_topic", + "iteration": "_:iteration_topic_3", + "name": { + "en": "Standard", + "fr": "Standard" + }, + "introduction": { + "en": "This implementation is meant for developers/publishers adding the template manually.", + "fr": "Cette implémentation est destinée aux développeurs/éditeurs qui ajoutent le gabarit manuellement." + }, + "instructions": { + "en": [ + "Refer to the working example and guidance for more information on how to implement this page template." + ], + "fr": [ + "Référez-vous à l'exemple pratique et aux directives pour plus d'informations sur l'implémentation ce modèle de page." + ] + }, + "ajaxSourceCode": { + "en": "topic-en.html main > *:not(.pagedetails)", + "fr": "topic-fr.html main > *:not(.pagedetails)" + } + }, + { + "@id": "_:implement_topic_aem", + "iteration": "_:iteration_topic_3", + "name": { + "en": "AEM users", + "fr": "Utilisateurs AEM" + }, + "introduction": { + "en": "This implementation is meant for publishers adding the template manually into an AEM page.", + "fr": "Cette implémentation est destinée aux éditeurs qui ajoutent le gabarit manuellement à une page d'AEM." + }, + "instructions": { + "en": [ + "Please refer to the documentation on GCPedia." + ], + "fr": [ + "Veuillez vous référer à la documentation dans GCPedia." + ] + } + }, + { + "@id": "_:implement_topic_1_to_2", + "iteration": "_:iteration_topic_3", + "name": { + "en": "Migrate to version 2", + "fr": "Migration vers la version 2" + }, + "introduction": { + "en": "This implementation is meant for publishers attempting to migrate their current topic page to the version 2 of the topic page template.", + "fr": "Cette implémentation est destinée aux éditeurs qui tentent de migrer leur page de sujet actuelle vers la version 2 du modèle de page de sujet." + }, + "instructions": { + "en": [ + "A full content review needs to be performed. This change cannot be automated.", + "Follow the implementation instructions under the \"Standard\" tab." + ], + "fr": [ + "Un examen complet du contenu doit être effectué. Ce changement ne peut pas être automatisé.", + "Veuillez suivre les instructions d'implémentation sous l'onglet « Standard »\"." + ] + } + } + ], + "iteration": [ + { + "@id": "_:iteration_topic_3", + "name": "Topic page - Iteration 3", + "date": "2024-06", + "breaking": [ + "Stabilization of the topic page template." + ], + "detectableBy": ".page-type-topic" + }, + { + "@id": "_:iteration_topic_2", + "name": "Theme / Topic page (Beta) - Iteration 2", + "date": "2021-01", + "detectableBy": "Half-width image introduction block. Full width most requested (provisional). Social media channels at bottom right", + "example": { + "en": [ + { + "href": "demoted/theme-topic-en.html", + "text": "Theme - Topic page version 2 (beta)" + } + ], + "fr": [ + { + "href": "demoted/theme-topic-fr.html", + "text": "Page the thème ou de sujet version 2 (bêta)" + } + ] + } + }, + { + "@id": "_:iteration_topic_1", + "name": "Topic page - Iteration 1", + "date": "2018-01", + "detectableBy": "Social media channels at top left. Most requested, Contributors and More information on the right.", + "example": { + "en": [ + { + "href": "demoted/topic-en.html", + "text": "Topic page version 1" + } + ], + "fr": [ + { + "href": "deprecated/topic-fr.html", + "text": "Page de sujet version 1" + } + ] + } + } + ], + "changesets": [ + { + "@id": "_:cs_topic_2", + "name": "Topic page", + "status": "stable", + "baseOnIteration": "_:iteration_topic_2", + "detectableBy": "By the sequence of the mandatory implemented design pattern and components and limited to its optional components.", + "layout": [ + "Intro block (mandatory)", + "Most requested - version 1 (optional)", + "Services and information - version 3 (mandatory)", + "Context-specific features - version 5.0 [.col-md-8] (optional) + Social media channels - version 2.1 [.col-md-4] (optional)", + "Contributors - version 1.0 (optional)" + ] + } + ] } ] diff --git a/_includes/components/gc-features/features.html b/_includes/components/gc-features/features.html index fc64cd4ed9..61a14a9769 100644 --- a/_includes/components/gc-features/features.html +++ b/_includes/components/gc-features/features.html @@ -16,7 +16,7 @@

Features

{% for i in (1..3) %}
- + {%- if page.language == "fr" -%}

[Lien vers l’élément en vedette]

Brève description de l’élément en vedette. Brève description de l’élément en vedette.

diff --git a/_includes/components/gc-features/one-tile-hidden-title.html b/_includes/components/gc-features/one-tile-hidden-title.html new file mode 100644 index 0000000000..094306bdda --- /dev/null +++ b/_includes/components/gc-features/one-tile-hidden-title.html @@ -0,0 +1,20 @@ +{%- comment -%} + +++++++++++++++++++++++++++++++++++ ++ List of features - One tile (invisible title) +++++++++++++++++++++++++++++++++++ + +{%- endcomment -%} + +
+

{% if page.language == "en" %}Featured{% else %}En vedette{% endif %}

+
+
+ +
+
+

{% if page.language == "en" %}[Feature hyperlink text]{% else %}[Lien vers l’élément en vedette]{% endif %}

+

{% if page.language == "en" %}Brief description of the feature being promoted.{% else %}Brève description de l’élément en vedette.{% endif %}

+
+
+
diff --git a/_includes/components/gc-features/two-tiles.html b/_includes/components/gc-features/two-tiles.html index 0fdc32b3c3..7fd0616151 100644 --- a/_includes/components/gc-features/two-tiles.html +++ b/_includes/components/gc-features/two-tiles.html @@ -16,7 +16,7 @@

Features

{% for i in (1..2) %}
- + {%- if page.language == "fr" -%}

[Lien vers l’élément en vedette]

Brève description de l’élément en vedette. Brève description de l’élément en vedette.

diff --git a/components/gc-features/gc-features-en.html b/components/gc-features/gc-features-en.html index 44ce93b6c1..88e6e647a6 100644 --- a/components/gc-features/gc-features-en.html +++ b/components/gc-features/gc-features-en.html @@ -109,7 +109,7 @@

Two-tiles left-aligned

-

Features

+

Features

@@ -142,7 +142,7 @@

Other Component

-

Features

+

Features

@@ -167,7 +167,7 @@

One-tile left-aligned

-

Featured

+

Featured

@@ -193,7 +193,7 @@

Other Component

-

Featured

+

Featured

diff --git a/components/gc-features/gc-features-fr.html b/components/gc-features/gc-features-fr.html index fbcdae940b..4ba7ef8a1d 100644 --- a/components/gc-features/gc-features-fr.html +++ b/components/gc-features/gc-features-fr.html @@ -108,7 +108,7 @@

Deux tuiles alignées à gauche

-

En vedette

+

En vedette

@@ -141,7 +141,7 @@

Autre composant

-

En vedette

+

En vedette

@@ -166,7 +166,7 @@

Une tuile alignée à gauche

-

En vedette

+

En vedette

@@ -192,7 +192,7 @@

Autre composant

-

En vedette

+

En vedette

diff --git a/components/gc-features/samples/features.html b/components/gc-features/samples/features.html index fc64cd4ed9..61a14a9769 100644 --- a/components/gc-features/samples/features.html +++ b/components/gc-features/samples/features.html @@ -16,7 +16,7 @@

Features

{% for i in (1..3) %}
- + {%- if page.language == "fr" -%}

[Lien vers l’élément en vedette]

Brève description de l’élément en vedette. Brève description de l’élément en vedette.

diff --git a/components/gc-features/samples/one-tile-hidden-title.html b/components/gc-features/samples/one-tile-hidden-title.html new file mode 100644 index 0000000000..094306bdda --- /dev/null +++ b/components/gc-features/samples/one-tile-hidden-title.html @@ -0,0 +1,20 @@ +{%- comment -%} + +++++++++++++++++++++++++++++++++++ ++ List of features - One tile (invisible title) +++++++++++++++++++++++++++++++++++ + +{%- endcomment -%} + +
+

{% if page.language == "en" %}Featured{% else %}En vedette{% endif %}

+
+
+ +
+
+

{% if page.language == "en" %}[Feature hyperlink text]{% else %}[Lien vers l’élément en vedette]{% endif %}

+

{% if page.language == "en" %}Brief description of the feature being promoted.{% else %}Brève description de l’élément en vedette.{% endif %}

+
+
+
diff --git a/components/gc-features/samples/two-tiles.html b/components/gc-features/samples/two-tiles.html index 0fdc32b3c3..7fd0616151 100644 --- a/components/gc-features/samples/two-tiles.html +++ b/components/gc-features/samples/two-tiles.html @@ -16,7 +16,7 @@

Features

{% for i in (1..2) %}
- + {%- if page.language == "fr" -%}

[Lien vers l’élément en vedette]

Brève description de l’élément en vedette. Brève description de l’élément en vedette.

diff --git a/templates/lowest-topic/index.json-ld b/templates/lowest-topic/index.json-ld deleted file mode 100644 index 4301174f2d..0000000000 --- a/templates/lowest-topic/index.json-ld +++ /dev/null @@ -1,200 +0,0 @@ -{ - "@context": { - "@version": 1.1, - "dct": "http://purl.org/dc/terms/", - "title": { "@id": "dct:title", "@container": "@language" }, - "description": { "@id": "dct:description", "@container": "@language" }, - "modified": "dct:modified" - }, - "title": { - "en": "Lowest topic (with secondary navigation)", - "fr": "Sujet de plus bas niveau (avec une navigation secondaire" - }, - "description": { - "en": "Template sample with a local navigation and a lowest topic page", - "fr": "Example de gabarit avec une navigation local et une page de sujet de plus bas niveau" - }, - "modified": "2023-08-30", - "componentName": "lowest-topic", - "status": "deprecated", - "pages": { - "examples": [ - { - "title": "[Topic - Secondary/Local navigation]", - "language": "en", - "path": "index-en.html" - }, - { - "title": "[Sujet - Navigation secondaire/locale]", - "language": "fr", - "path": "index-fr.html" - }, - - { - "title": "Task 1", - "language": "en", - "path": "task1/index-en.html" - }, - { - "title": "Tâche 1", - "language": "fr", - "path": "task1/index-fr.html" - }, - - { - "title": "Sub task 1", - "language": "en", - "path": "task1/task1/index-en.html" - }, - { - "title": "Sub tâche 1", - "language": "fr", - "path": "task1/task1/index-fr.html" - }, - { - "title": "Sub task 2", - "language": "en", - "path": "task1/task2/index-en.html" - }, - { - "title": "Sub tâche 2", - "language": "fr", - "path": "task1/task2/index-fr.html" - }, - { - "title": "Sub task 3", - "language": "en", - "path": "task1/task3/index-en.html" - }, - { - "title": "Sub tâche 3", - "language": "fr", - "path": "task1/task3/index-fr.html" - }, - { - "title": "Sub task 4", - "language": "en", - "path": "task1/task4/index-en.html" - }, - { - "title": "Sub tâche 4", - "language": "fr", - "path": "task1/task4/index-fr.html" - }, - { - "title": "Sub task 5", - "language": "en", - "path": "task1/task5/index-en.html" - }, - { - "title": "Sub tâche 5", - "language": "fr", - "path": "task1/task5/index-fr.html" - }, - { - "title": "Sub task 6", - "language": "en", - "path": "task1/task6/index-en.html" - }, - { - "title": "Sub tâche 6", - "language": "fr", - "path": "task1/task6/index-fr.html" - }, - { - "title": "Sub task 7", - "language": "en", - "path": "task1/task7/index-en.html" - }, - { - "title": "Sub tâche 7", - "language": "fr", - "path": "task1/task7/index-fr.html" - }, - - { - "title": "Task 2", - "language": "en", - "path": "task2/index-en.html" - }, - { - "title": "Tâche 2", - "language": "fr", - "path": "task2/index-fr.html" - }, - - { - "title": "Task 3", - "language": "en", - "path": "task3/index-en.html" - }, - { - "title": "Tâche 3", - "language": "fr", - "path": "task3/index-fr.html" - }, - - { - "title": "Sub task 1", - "language": "en", - "path": "task3/task1/index-en.html" - }, - { - "title": "Sub tâche 1", - "language": "fr", - "path": "task3/task1/index-fr.html" - }, - { - "title": "Sub task 2", - "language": "en", - "path": "task3/task2/index-en.html" - }, - { - "title": "Sub tâche 2", - "language": "fr", - "path": "task3/task2/index-fr.html" - }, - { - "title": "Sub sub task 1", - "language": "en", - "path": "task3/task2/task1/index-en.html" - }, - { - "title": "Sub sub tâche 1", - "language": "fr", - "path": "task3/task2/task1/index-fr.html" - }, - { - "title": "Sub sub task 2", - "language": "en", - "path": "task3/task2/task2/index-en.html" - }, - { - "title": "Sub sub tâche 2", - "language": "fr", - "path": "task3/task2/task2/index-fr.html" - }, - { - "title": "Sub task 3", - "language": "en", - "path": "task3/task3/index-en.html" - }, - { - "title": "Sub tâche 3", - "language": "fr", - "path": "task3/task3/index-fr.html" - }, - - { - "title": "Task 4", - "language": "en", - "path": "task4/index-en.html" - }, - { - "title": "Tâche 4", - "language": "fr", - "path": "task4/index-fr.html" - } - ] - } -} diff --git a/templates/theme-topic/index.json-ld b/templates/theme-topic/index.json-ld deleted file mode 100644 index 5d3e50c6c1..0000000000 --- a/templates/theme-topic/index.json-ld +++ /dev/null @@ -1,34 +0,0 @@ -{ - "@context": { - "@version": 1.1, - "dct": "http://purl.org/dc/terms/", - "title": { "@id": "dct:title", "@container": "@language" }, - "description": { "@id": "dct:description", "@container": "@language" }, - "modified": "dct:modified" - }, - "title": { - "en": "Beta - Theme, Topic", - "fr": "Béta - Thèmatique et sujet" - }, - "description": { - "en": "Theme, Topic beta templates", - "fr": "Gabarit béta du thèmatique et sujet" - }, - "modified": "2020-02-12", - "componentName": "theme-topic", - "status": "provisional", - "pages": { - "examples": [ - { - "title": "[Theme - Topic title]", - "language": "en", - "path": "theme-topic-en.html" - }, - { - "title": "[Titre du thème ou du sujet]", - "language": "fr", - "path": "theme-topic-fr.html" - } - ] - } -} diff --git a/templates/theme-topic/theme-topic-en.md b/templates/topic/demoted/theme-topic-en.html similarity index 97% rename from templates/theme-topic/theme-topic-en.md rename to templates/topic/demoted/theme-topic-en.html index 65b29840b9..0d5866a6d1 100644 --- a/templates/theme-topic/theme-topic-en.md +++ b/templates/topic/demoted/theme-topic-en.html @@ -6,10 +6,8 @@ pageclass: "page-type-nav" pageType: "theme-topic" dateModified: "2021-01-19" -share: true -noMainContainer: true --- -{::nomarkdown} +
@@ -17,7 +15,7 @@

{{ page.title }}

1-2 sentences that describe the topics and top tasks that can be accessed on this page.

@@ -109,7 +107,7 @@

[Subtopic hyperlink text]

Features

- +

[Feature hyperlink text]

@@ -130,4 +128,3 @@

From:

-{:/} diff --git a/templates/theme-topic/theme-topic-fr.md b/templates/topic/demoted/theme-topic-fr.html similarity index 97% rename from templates/theme-topic/theme-topic-fr.md rename to templates/topic/demoted/theme-topic-fr.html index 46c2cde64a..a053ca489a 100644 --- a/templates/theme-topic/theme-topic-fr.md +++ b/templates/topic/demoted/theme-topic-fr.html @@ -6,10 +6,8 @@ pageclass: "page-type-nav" pageType: "theme-topic" dateModified: "2021-01-19" -share: true -noMainContainer: true --- -{::nomarkdown} +
@@ -17,7 +15,7 @@

{{ page.title }}

1 ou 2 phrases d’introduction qui définissent les sous-sujets et les tâches principales qui peuvent être consultés sur cette page.

@@ -109,7 +107,7 @@

[Lien à un sous-sujet]

En vedette

- +

[Lien à l’élément en vedette]

@@ -130,4 +128,3 @@

De :

-{:/} diff --git a/templates/topic/demoted/topic-en.html b/templates/topic/demoted/topic-en.html new file mode 100644 index 0000000000..0c856f4f28 --- /dev/null +++ b/templates/topic/demoted/topic-en.html @@ -0,0 +1,95 @@ +--- +{ + "title": "[Topic title]", + "layout": "without-h1", + "language": "en", + "altLangPage": "topic-fr.html", + "pageclass": "page-type-nav", + "breadcrumbs": [ + { "title": "[Theme Name]", "link": "templates/theme-en.html" } + ], + "dateModified": "2023-09-01", + "share": "true", + "deptfeature": true +} +--- +
+
+

{{ page.title }}

+

1-2 sentences that describe the topics and top tasks that can be accessed on this page.

+ {% include gc-follow-us/follow.html %} +
+ +
+
+
+ {% include components/most-requested/most-requested.html %} +
+
+

Services and information

+
+
+

[Subtopic hyperlink text]

+

Summary of the information or tasks that can be accomplished on the sub-topic page. Remove prose or promotional messaging. Use action verbs.

+
+
+

[Subtopic hyperlink text]

+

Summary of the information or tasks that can be accomplished on the sub-topic page. Remove prose or promotional messaging. Use action verbs.

+
+
+

[Subtopic hyperlink text]

+

Summary of the information or tasks that can be accomplished on the sub-topic page. Remove prose or promotional messaging. Use action verbs.

+
+
+

[Subtopic hyperlink text]

+

Summary of the information or tasks that can be accomplished on the sub-topic page. Remove prose or promotional messaging. Use action verbs.

+
+
+

[Subtopic hyperlink text]

+

Summary of the information or tasks that can be accomplished on the sub-topic page. Remove prose or promotional messaging. Use action verbs.

+
+
+

[Subtopic hyperlink text]

+

Summary of the information or tasks that can be accomplished on the sub-topic page. Remove prose or promotional messaging. Use action verbs.

+
+
+

[Subtopic hyperlink text]

+

Summary of the information or tasks that can be accomplished on the sub-topic page. Remove prose or promotional messaging. Use action verbs.

+
+
+

[Subtopic hyperlink text]

+

Summary of the information or tasks that can be accomplished on the sub-topic page. Remove prose or promotional messaging. Use action verbs.

+
+
+

[Subtopic hyperlink text]

+

Summary of the information or tasks that can be accomplished on the sub-topic page. Remove prose or promotional messaging. Use action verbs.

+
+
+

[Subtopic hyperlink text]

+

Summary of the information or tasks that can be accomplished on the sub-topic page. Remove prose or promotional messaging. Use action verbs.

+
+
+

[Subtopic hyperlink text]

+

Summary of the information or tasks that can be accomplished on the sub-topic page. Remove prose or promotional messaging. Use action verbs.

+
+
+

[Subtopic hyperlink text]

+

Summary of the information or tasks that can be accomplished on the sub-topic page. Remove prose or promotional messaging. Use action verbs.

+
+
+
+
+
+

Contributors

+ +
+ {% include components/more-info/more-info.html %} +
+
+{% include templates/whtwedo-3-items.html %} diff --git a/templates/topic/demoted/topic-fr.html b/templates/topic/demoted/topic-fr.html new file mode 100644 index 0000000000..8ba6150832 --- /dev/null +++ b/templates/topic/demoted/topic-fr.html @@ -0,0 +1,95 @@ +--- +{ + "title": "[Titre du sujet]", + "layout": "without-h1", + "language": "fr", + "altLangPage": "topic-en.html", + "pageclass": "page-type-nav", + "breadcrumbs": [ + { "title": "[Thème]", "link": "templates/theme-fr.html" } + ], + "dateModified": "2023-09-01", + "share": "true", + "deptfeature": true +} +--- +
+
+

{{ page.title }}

+

1 ou 2 phrases d’introduction qui définissent les sous-sujets et les tâches principales qui peuvent être consultés sur cette page.

+ {% include gc-follow-us/follow.html %} +
+ +
+
+
+ {% include components/most-requested/most-requested.html %} +
+
+

Services et renseignements

+
+
+

[Lien à un sous-sujet]

+

Résumé des renseignements disponibles ou des tâches pouvant être accomplies sur la page. Supprimez les longs libellés et les messages promotionnels. Utilisez une formulation basée sur l'action.

+
+
+

[Lien à un sous-sujet]

+

Résumé des renseignements disponibles ou des tâches pouvant être accomplies sur la page. Supprimez les longs libellés et les messages promotionnels. Utilisez une formulation basée sur l'action.

+
+
+

[Lien à un sous-sujet]

+

Résumé des renseignements disponibles ou des tâches pouvant être accomplies sur la page. Supprimez les longs libellés et les messages promotionnels. Utilisez une formulation basée sur l'action.

+
+
+

[Lien à un sous-sujet]

+

Résumé des renseignements disponibles ou des tâches pouvant être accomplies sur la page. Supprimez les longs libellés et les messages promotionnels. Utilisez une formulation basée sur l'action.

+
+
+

[Lien à un sous-sujet]

+

Résumé des renseignements disponibles ou des tâches pouvant être accomplies sur la page. Supprimez les longs libellés et les messages promotionnels. Utilisez une formulation basée sur l'action.

+
+
+

[Lien à un sous-sujet]

+

Résumé des renseignements disponibles ou des tâches pouvant être accomplies sur la page. Supprimez les longs libellés et les messages promotionnels. Utilisez une formulation basée sur l'action.

+
+
+

[Lien à un sous-sujet]

+

Résumé des renseignements disponibles ou des tâches pouvant être accomplies sur la page. Supprimez les longs libellés et les messages promotionnels. Utilisez une formulation basée sur l'action.

+
+
+

[Lien à un sous-sujet]

+

Résumé des renseignements disponibles ou des tâches pouvant être accomplies sur la page. Supprimez les longs libellés et les messages promotionnels. Utilisez une formulation basée sur l'action.

+
+
+

[Lien à un sous-sujet]

+

Résumé des renseignements disponibles ou des tâches pouvant être accomplies sur la page. Supprimez les longs libellés et les messages promotionnels. Utilisez une formulation basée sur l'action.

+
+
+

[Lien à un sous-sujet]

+

Résumé des renseignements disponibles ou des tâches pouvant être accomplies sur la page. Supprimez les longs libellés et les messages promotionnels. Utilisez une formulation basée sur l'action.

+
+
+

[Lien à un sous-sujet]

+

Résumé des renseignements disponibles ou des tâches pouvant être accomplies sur la page. Supprimez les longs libellés et les messages promotionnels. Utilisez une formulation basée sur l'action.

+
+
+

[Lien à un sous-sujet]

+

Résumé des renseignements disponibles ou des tâches pouvant être accomplies sur la page. Supprimez les longs libellés et les messages promotionnels. Utilisez une formulation basée sur l'action.

+
+
+
+
+
+

Collaborateurs

+ +
+ {% include components/more-info/more-info.html %} +
+
+{% include templates/whtwedo-3-items.html %} diff --git a/templates/topic/topic-testcase-1-en.html b/templates/topic/demoted/topic-testcase-1-en.html similarity index 94% rename from templates/topic/topic-testcase-1-en.html rename to templates/topic/demoted/topic-testcase-1-en.html index 6a1213354f..0f563a4cf3 100644 --- a/templates/topic/topic-testcase-1-en.html +++ b/templates/topic/demoted/topic-testcase-1-en.html @@ -20,7 +20,7 @@

{{ page.title }}

{% include gc-follow-us/follow.html %}
diff --git a/templates/topic/topic-testcase-1-fr.html b/templates/topic/demoted/topic-testcase-1-fr.html similarity index 95% rename from templates/topic/topic-testcase-1-fr.html rename to templates/topic/demoted/topic-testcase-1-fr.html index f13de09845..553f12cae8 100644 --- a/templates/topic/topic-testcase-1-fr.html +++ b/templates/topic/demoted/topic-testcase-1-fr.html @@ -20,7 +20,7 @@

{{ page.title }}

{% include gc-follow-us/follow.html %}
diff --git a/templates/theme-topic/img/825x200.jpg b/templates/topic/img/825x200.jpg similarity index 100% rename from templates/theme-topic/img/825x200.jpg rename to templates/topic/img/825x200.jpg diff --git a/templates/topic/index.json-ld b/templates/topic/index.json-ld index f557f55317..35645901d5 100644 --- a/templates/topic/index.json-ld +++ b/templates/topic/index.json-ld @@ -14,9 +14,10 @@ "en": "Topic template examples", "fr": "Exemples de page de sujets" }, - "modified": "2020-04-06", + "modified": "2024-06-10", "componentName": "topic", "status": "stable", + "version": "2.0", "pages": { "examples": [ { @@ -30,17 +31,234 @@ "path": "topic-fr.html" }, { - "title": "[Topic title, test case 1]", + "title": "Theme/Topic page - Demoted", "language": "en", - "path": "topic-testcase-1-en.html", - "description": "Special test case of a topic pages where the service and information section take less heigh space compared to most request and contributor section on the right column." + "path": "demoted/theme-topic-en.html" }, { - "title": "[Titre du sujet, cas d'essaie 1]", + "title": "Page de sujet/thème - Rétrogradée", "language": "fr", - "path": "topic-testcase-1-fr.html", - "description": "Cas d'essaie spécial de la page de sujet lorsque la hauteur du contenu pour la section service et renseignements est plus petite que la section en demande et collaborateurs dans la colonne de droite." + "path": "demoted/theme-topic-fr.html" + }, + { + "title": "Lowest topic (with secondary navigation) - Deprecated", + "language": "en", + "path": "../lowest-topic/index-en.html" + }, + { + "title": "Sujet de plus bas niveau (avec une navigation secondaire) - Dépréciée", + "language": "fr", + "path": "../lowest-topic/index-fr.html" + } + ], + "docs": [ + { + "title": "Topic page template", + "language": "en", + "path": "topic-doc-en.html" + }, + { + "title": "Gabarit de page de sujet", + "language": "fr", + "path": "topic-doc-fr.html" } ] - } + }, + "dependencies": { + "en": [ + { "title": "Intro block", "url": "https://wet-boew.github.io/GCWeb/design-patterns/gc-intro/gc-intro-doc-en.html", "component": "gc-intro" }, + { "title": "Most requested", "url": "https://wet-boew.github.io/GCWeb/components/gc-most-requested/gc-most-requested-doc-en.html", "component": "gc-most-requested" }, + { "title": "Services and information", "url": "https://wet-boew.github.io/GCWeb/components/gc-srvinfo/gc-srvinfo-doc-en.html", "component": "gc-srvinfo" }, + { "title": "Context-specific features", "url": "https://wet-boew.github.io/GCWeb/components/gc-features/gc-features-doc-en.html", "component": "gc-features" }, + { "title": "Social media channels", "url": "https://wet-boew.github.io/GCWeb/components/gc-follow-us/gc-follow-us-doc-en.html", "component": "gc-follow-us" }, + { "title": "Contributors", "url": "https://wet-boew.github.io/GCWeb/components/gc-contributors/gc-contributors-doc-en.html", "component": "gc-contributors" } + ], + "fr": [ + { "title": "Bloc d'introduction", "url": "https://wet-boew.github.io/GCWeb/design-patterns/gc-intro/gc-intro-doc-fr.html", "component": "gc-intro" }, + { "title": "En demande", "url": "https://wet-boew.github.io/GCWeb/components/gc-most-requested/gc-most-requested-doc-fr.html", "component": "gc-most-requested" }, + { "title": "Services et renseignements", "url": "https://wet-boew.github.io/GCWeb/components/gc-srvinfo/gc-srvinfo-doc-fr.html", "component": "gc-srvinfo" }, + { "title": "Promotions contextuelles", "url": "https://wet-boew.github.io/GCWeb/components/gc-features/gc-features-doc-fr.html", "component": "gc-features" }, + { "title": "Bloc des réseaux de médias sociaux", "url": "https://wet-boew.github.io/GCWeb/components/gc-follow-us/gc-follow-us-doc-fr.html", "component": "gc-follow-us" }, + { "title": "Collaborateurs", "url": "https://wet-boew.github.io/GCWeb/components/gc-contributors/gc-contributors-doc-fr.html", "component": "gc-contributors" } + ] + }, + "a11yGuidance": "No accessibility guidance.", + "variations": [ + { + "name": { + "en": "Topic page", + "fr": "Page de sujet" + }, + "status": "stable", + "description": { + "en": "Topic pages provide access to topics and destination pages that support task completion.", + "fr": "Les pages de sujet fournissent un accès aux sujets et aux pages de destination qui appuient l’achèvement des tâches." + }, + "guidance": { + "en": "https://design.canada.ca/mandatory-templates/theme-topic.html", + "fr": "https://conception.canada.ca/modeles-obligatoire/theme-sujet.html" + }, + "iteration": "_:iteration_topic_3", + "example": [ + { + "en": { "href": "topic-en.html", "text": "Topic page" }, + "fr": { "href": "topic-fr.html", "text": "Page de sujet" } + } + ], + "implementation": [ + "_:implement_topic", + "_:implement_topic_aem", + "_:implement_topic_1_to_2" + ], + "history": [ + { + "en": "June 2024 - Stabilization of the version 2 of the page template.", + "fr": "Juin 2024 - Stabilisation de la version 2 du gabarit de page." + }, + { + "en": "January 2021 - Provisional implementation of the version 2 of the page template.", + "fr": "Janvier 2021 - Implémentation provisoire de la version 2 du gabarit de page." + }, + { + "en": "As per January 2018's template - Implementation of the version 1 of the page template.", + "fr": "Selon le gabarit en date de Janvier 2018 - Implémentation de la version 1 du gabarit de page." + } + ] + } + ], + "implementation": [ + { + "@id": "_:implement_topic", + "iteration": "_:iteration_topic_3", + "name": { + "en": "Standard", + "fr": "Standard" + }, + "introduction": { + "en": "This implementation is meant for developers/publishers adding the template manually.", + "fr": "Cette implémentation est destinée aux développeurs/éditeurs qui ajoutent le gabarit manuellement." + }, + "instructions": { + "en": [ + "Refer to the working example and guidance for more information on how to implement this page template." + ], + "fr": [ + "Référez-vous à l'exemple pratique et aux directives pour plus d'informations sur l'implémentation ce modèle de page." + ] + }, + "ajaxSourceCode": { + "en": "topic-en.html main > *:not(.pagedetails)", + "fr": "topic-fr.html main > *:not(.pagedetails)" + } + }, + { + "@id": "_:implement_topic_aem", + "iteration": "_:iteration_topic_3", + "name": { + "en": "AEM users", + "fr": "Utilisateurs AEM" + }, + "introduction": { + "en": "This implementation is meant for publishers adding the template manually into an AEM page.", + "fr": "Cette implémentation est destinée aux éditeurs qui ajoutent le gabarit manuellement à une page d'AEM." + }, + "instructions": { + "en": [ + "Please refer to the documentation on GCPedia." + ], + "fr": [ + "Veuillez vous référer à la documentation dans GCPedia." + ] + } + }, + { + "@id": "_:implement_topic_1_to_2", + "iteration": "_:iteration_topic_3", + "name": { + "en": "Migrate to version 2", + "fr": "Migration vers la version 2" + }, + "introduction": { + "en": "This implementation is meant for publishers attempting to migrate their current topic page to the version 2 of the topic page template.", + "fr": "Cette implémentation est destinée aux éditeurs qui tentent de migrer leur page de sujet actuelle vers la version 2 du modèle de page de sujet." + }, + "instructions": { + "en": [ + "A full content review needs to be performed. This change cannot be automated.", + "Follow the implementation instructions under the \"Standard\" tab." + ], + "fr": [ + "Un examen complet du contenu doit être effectué. Ce changement ne peut pas être automatisé.", + "Veuillez suivre les instructions d'implémentation sous l'onglet « Standard »\"." + ] + } + } + ], + "iteration": [ + { + "@id": "_:iteration_topic_3", + "name": "Topic page - Iteration 3", + "date": "2024-06", + "breaking": [ + "Stabilization of the topic page template." + ], + "detectableBy": ".page-type-topic" + }, + { + "@id": "_:iteration_topic_2", + "name": "Theme / Topic page (Beta) - Iteration 2", + "date": "2021-01", + "detectableBy": "Half-width image introduction block. Full width most requested (provisional). Social media channels at bottom right", + "example": { + "en": [ + { + "href": "demoted/theme-topic-en.html", + "text": "Theme - Topic page version 2 (beta)" + } + ], + "fr": [ + { + "href": "demoted/theme-topic-fr.html", + "text": "Page the thème ou de sujet version 2 (bêta)" + } + ] + } + }, + { + "@id": "_:iteration_topic_1", + "name": "Topic page - Iteration 1", + "date": "2018-01", + "detectableBy": "Social media channels at top left. Most requested, Contributors and More information on the right.", + "example": { + "en": [ + { + "href": "demoted/topic-en.html", + "text": "Topic page version 1" + } + ], + "fr": [ + { + "href": "deprecated/topic-fr.html", + "text": "Page de sujet version 1" + } + ] + } + } + ], + "changesets": [ + { + "@id": "_:cs_topic_2", + "name": "Topic page", + "status": "stable", + "baseOnIteration": "_:iteration_topic_2", + "detectableBy": "By the sequence of the mandatory implemented design pattern and components and limited to its optional components.", + "layout": [ + "Intro block (mandatory)", + "Most requested - version 1 (optional)", + "Services and information - version 3 (mandatory)", + "Context-specific features - version 5.0 [.col-md-8] (optional) + Social media channels - version 2.1 [.col-md-4] (optional)", + "Contributors - version 1.0 (optional)" + ] + } + ] } diff --git a/templates/topic/topic-doc-en.html b/templates/topic/topic-doc-en.html new file mode 100644 index 0000000000..5c685ecf3d --- /dev/null +++ b/templates/topic/topic-doc-en.html @@ -0,0 +1,9 @@ +--- +title: Topic page +description: Documentation for the topic page templates. +language: en +altLangPage: topic-doc-fr.html +dateModified: 2024-06-10 +layout: documentation +index_json: index.json-ld +--- diff --git a/templates/topic/topic-doc-fr.html b/templates/topic/topic-doc-fr.html new file mode 100644 index 0000000000..331358c40f --- /dev/null +++ b/templates/topic/topic-doc-fr.html @@ -0,0 +1,9 @@ +--- +title: Page de sujet +description: Documentation des gabarits de page de sujet. +language: fr +altLangPage: topic-doc-en.html +dateModified: 2024-06-10 +layout: documentation +index_json: index.json-ld +--- diff --git a/templates/topic/topic-en.html b/templates/topic/topic-en.html index f12da2397e..1024ceeb8b 100644 --- a/templates/topic/topic-en.html +++ b/templates/topic/topic-en.html @@ -1,95 +1,36 @@ --- -{ - "title": "[Topic title]", - "layout": "without-h1", - "language": "en", - "altLangPage": "topic-fr.html", - "pageclass": "page-type-nav", - "breadcrumbs": [ - { "title": "[Theme Name]", "link": "templates/theme-en.html" } - ], - "dateModified": "2023-09-01", - "share": "true", - "deptfeature": true -} +title: "[Topic title]" +layout: no-container +language: "en" +altLangPage: "topic-fr.html" +dateModified: "2024-06-10" --- -
-
-

{{ page.title }}

-

1-2 sentences that describe the topics and top tasks that can be accessed on this page.

- {% include gc-follow-us/follow.html %} -
-