Skip to content

Commit

Permalink
Renamed stacked header variant, changed index.json accordingly
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianBurke committed Aug 20, 2024
1 parent 887f387 commit 50a48bb
Show file tree
Hide file tree
Showing 8 changed files with 256 additions and 10 deletions.
89 changes: 87 additions & 2 deletions _data/templates.json
Original file line number Diff line number Diff line change
Expand Up @@ -1285,10 +1285,10 @@
"en": "Topic template examples",
"fr": "Exemples de page de sujets"
},
"modified": "2024-06-10",
"modified": "2024-08-20",
"componentName": "topic",
"status": "stable",
"version": "2.0",
"version": "2.1",
"pages": {
"examples": [
{
Expand All @@ -1301,6 +1301,16 @@
"language": "fr",
"path": "topic-fr.html"
},
{
"title": "[Topic title with stacked header]",
"language": "en",
"path": "topic-stackedheader-en.html"
},
{
"title": "[Titre du sujet avec en-tête superposée]",
"language": "fr",
"path": "topic-stackedheader-fr.html"
},
{
"title": "Theme/Topic page - Demoted",
"language": "en",
Expand Down Expand Up @@ -1355,6 +1365,39 @@
},
"a11yGuidance": "No accessibility guidance.",
"variations": [
{
"name": {
"en": "Topic page with stacked header",
"fr": "Page de sujet avec en-tête superposée"
},
"status": "stable",
"description": {
"en": "Use the stacked main page title to display the page's section title as well as the page title.",
"fr": "Utilisez le titre de la page principale superposé pour afficher le titre de la section de la page ainsi que le titre de la page."
},
"guidance": {
"en": "https://design.canada.ca/mandatory-templates/theme-topic.html",
"fr": "https://conception.canada.ca/modeles-obligatoire/theme-sujet.html"
},
"iteration": "_:iteration_topic_4",
"example": [
{
"en": { "href": "topic-stackedheader-en.html", "text": "Topic page with stacked header" },
"fr": { "href": "topic-stackedheader-fr.html", "text": "Page de sujet avec en-tête superposée" }
}
],
"implementation": [
"_:implement_topic",
"_:implement_topic_aem",
"_:implement_topic_1_to_2"
],
"history": [
{
"en": "August 2024 - Version 1 of the stacked header variant.",
"fr": "août 2024 - Version 1 de la variante d'en-tête empilé."
}
]
},
{
"name": {
"en": "Topic page",
Expand Down Expand Up @@ -1463,9 +1506,51 @@
"Veuillez suivre les instructions d'implémentation sous l'onglet « Standard »\"."
]
}
},
{
"@id": "_:implement_topic_stackedheader",
"iteration": "_:iteration_topic_4",
"name": {
"en": "Topic page with stacked header",
"fr": "Page de sujet avec en-tête superposée"
},
"introduction": {
"en": "Use the stacked main page title to display the page's section title as well as the page title.",
"fr": "Utilisez le titre de la page principale superposé pour afficher le titre de la section de la page ainsi que le titre de la page."
},
"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_4",
"name": "Topic page - Iteration 4",
"date": "2024-08",
"detectableBy": "Stacked main page title to display the page's section title as well as the page title.",
"example": {
"en": [
{
"href": "topic-stackedheader-en.html",
"text": "Topic page with stacked header"
}
],
"fr": [
{
"href": "topic-stackedheader-fr.html",
"text": "Page de sujet avec en-tête superposée"
}
]
}
},
{
"@id": "_:iteration_topic_3",
"name": "Topic page - Iteration 3",
Expand Down
89 changes: 87 additions & 2 deletions templates/topic/index.json-ld
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
"en": "Topic template examples",
"fr": "Exemples de page de sujets"
},
"modified": "2024-06-10",
"modified": "2024-08-20",
"componentName": "topic",
"status": "stable",
"version": "2.0",
"version": "2.1",
"pages": {
"examples": [
{
Expand All @@ -30,6 +30,16 @@
"language": "fr",
"path": "topic-fr.html"
},
{
"title": "[Topic title without stacked header]",
"language": "en",
"path": "topic-nostackedheader-en.html"
},
{
"title": "[Titre du sujet sans en-tête superposée]",
"language": "fr",
"path": "topic-nostackedheader-fr.html"
},
{
"title": "Theme/Topic page - Demoted",
"language": "en",
Expand Down Expand Up @@ -84,6 +94,39 @@
},
"a11yGuidance": "No accessibility guidance.",
"variations": [
{
"name": {
"en": "Topic page with stacked header",
"fr": "Page de sujet avec en-tête superposée"
},
"status": "stable",
"description": {
"en": "Use the stacked main page title to display the page's section title as well as the page title.",
"fr": "Utilisez le titre de la page principale superposé pour afficher le titre de la section de la page ainsi que le titre de la page."
},
"guidance": {
"en": "https://design.canada.ca/mandatory-templates/theme-topic.html",
"fr": "https://conception.canada.ca/modeles-obligatoire/theme-sujet.html"
},
"iteration": "_:iteration_topic_4",
"example": [
{
"en": { "href": "topic-en.html", "text": "Topic page with stacked header" },
"fr": { "href": "topic-fr.html", "text": "Page de sujet avec en-tête superposée" }
}
],
"implementation": [
"_:implement_topic",
"_:implement_topic_aem",
"_:implement_topic_1_to_2"
],
"history": [
{
"en": "August 2024 - Version 1 of the stacked header variant.",
"fr": "août 2024 - Version 1 de la variante d'en-tête empilé."
}
]
},
{
"name": {
"en": "Topic page",
Expand Down Expand Up @@ -192,9 +235,51 @@
"Veuillez suivre les instructions d'implémentation sous l'onglet « Standard »\"."
]
}
},
{
"@id": "_:implement_topic_stackedheader",
"iteration": "_:iteration_topic_4",
"name": {
"en": "Topic page with stacked header",
"fr": "Page de sujet avec en-tête superposée"
},
"introduction": {
"en": "Use the stacked main page title to display the page's section title as well as the page title.",
"fr": "Utilisez le titre de la page principale superposé pour afficher le titre de la section de la page ainsi que le titre de la page."
},
"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_4",
"name": "Topic page - Iteration 4",
"date": "2024-08",
"detectableBy": "Stacked main page title to display the page's section title as well as the page title.",
"example": {
"en": [
{
"href": "topic-en.html",
"text": "Topic page with stacked header"
}
],
"fr": [
{
"href": "topic-fr.html",
"text": "Page de sujet avec en-tête superposée"
}
]
}
},
{
"@id": "_:iteration_topic_3",
"name": "Topic page - Iteration 3",
Expand Down
1 change: 1 addition & 0 deletions templates/topic/topic-doc-en.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
layout: documentation
index_json: index.json-ld
---
{%- include /alert-softlaunch.html genre="m" component="topic template" version="2" -%}
1 change: 1 addition & 0 deletions templates/topic/topic-doc-fr.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
layout: documentation
index_json: index.json-ld
---
{%- include /alert-softlaunch.html genre="m" component="gabarit de sujet" version="2" -%}
7 changes: 4 additions & 3 deletions templates/topic/topic-en.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
---
title: "[Topic title]"
sectionTitle: "[Section title]"
layout: no-container
language: "en"
altLangPage: "topic-fr.html"
dateModified: "2024-06-10"
altLangPage: "topic-stackedheader-fr.html"
dateModified: "2024-08-20"
---

<div class="container">
<div class="row">
<div class="col-md-6">
<h1 property="name" id="wb-cont">{{ page.title }}</h1>
{%- include /sites/[main-page-title/main-page-title.html -%}
<p>1-2 sentences that describe the topics and top tasks that can be accessed on this page.</p>
</div>
<div class="col-md-6 hidden-sm hidden-xs">
Expand Down
7 changes: 4 additions & 3 deletions templates/topic/topic-fr.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
---
title: "[Titre du sujet]"
sectionTitle: "[Titre de la section]"
layout: no-container
language: "fr"
altLangPage: "topic-en.html"
dateModified: "2024-06-10"
altLangPage: "topic-stackedheader-en.html"
dateModified: "2024-08-20"
---

<div class="container">
<div class="row">
<div class="col-md-6">
<h1 property="name" id="wb-cont">{{ page.title }}</h1>
{%- include /sites/[main-page-title/main-page-title.html -%}
<p>1 à 2 phrases décrivant les sujets et les principales tâches accessibles sur cette page.</p>
</div>
<div class="col-md-6 hidden-sm hidden-xs">
Expand Down
36 changes: 36 additions & 0 deletions templates/topic/topic-nostackedheader-en.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
title: "[Topic title]"
layout: no-container
language: "en"
altLangPage: "topic-fr.html"
dateModified: "2024-06-10"
---

<div class="container">
<div class="row">
<div class="col-md-6">
<h1 property="name" id="wb-cont">{{ page.title }}</h1>
<p>1-2 sentences that describe the topics and top tasks that can be accessed on this page.</p>
</div>
<div class="col-md-6 hidden-sm hidden-xs">
<img src="https://dummyimage.com/520x200/000000/FFFFFF.png" alt="" class="img-responsive pull-right mrgn-tp-lg">
</div>
</div>
</div>

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

<div class="container">
{%- include /components/gc-srvinfo/3col-hidden-title.html -%}

<div class="row mrgn-tp-xl">
<div class="col-md-8">
{%- include /components/gc-features/one-tile-hidden-title.html -%}
</div>
<div class="col-md-4">
{%- include gc-follow-us/gc-follow-us.html -%}
</div>
</div>

{%- include /components/gc-contributors/gc-contributors.html -%}
</div>
36 changes: 36 additions & 0 deletions templates/topic/topic-nostackedheader-fr.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
title: "[Titre du sujet]"
layout: no-container
language: "fr"
altLangPage: "topic-en.html"
dateModified: "2024-06-10"
---

<div class="container">
<div class="row">
<div class="col-md-6">
<h1 property="name" id="wb-cont">{{ page.title }}</h1>
<p>1 à 2 phrases décrivant les sujets et les principales tâches accessibles sur cette page.</p>
</div>
<div class="col-md-6 hidden-sm hidden-xs">
<img src="https://dummyimage.com/520x200/000000/FFFFFF.png" alt="" class="img-responsive pull-right mrgn-tp-lg">
</div>
</div>
</div>

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

<div class="container">
{%- include /components/gc-srvinfo/3col-hidden-title.html -%}

<div class="row mrgn-tp-xl">
<div class="col-md-8">
{%- include /components/gc-features/one-tile-hidden-title.html -%}
</div>
<div class="col-md-4">
{%- include gc-follow-us/gc-follow-us.html -%}
</div>
</div>

{%- include /components/gc-contributors/gc-contributors.html -%}
</div>

0 comments on commit 50a48bb

Please sign in to comment.