Skip to content

Commit

Permalink
Content and GCWeb Jekyl minor - Merge pull request #2287 from Garneau…
Browse files Browse the repository at this point in the history
…ma/breadcrumbs

Breadcrumbs: adding GCWeb Home globally

* Content - Update the breadcrumb on almost all pages
* GCWeb Jekyll - Minor - Add global property for defining site breadcrumb, Property "breadcrumbs" in _config.yml configurable the same as a breadcrumb defined in a page property
* GCWeb Jekyll - Minor - Add page property to override site wide breadcrumb configured. Boolean property "overwriteBreadcrumbs"

There is no impact for the GCWeb product according to our versioning API.
  • Loading branch information
duboisp authored Nov 22, 2023
2 parents 95e83df + 3611e23 commit a0c916f
Show file tree
Hide file tree
Showing 160 changed files with 203 additions and 342 deletions.
4 changes: 2 additions & 2 deletions Gruntfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -662,12 +662,12 @@ module.exports = (grunt) ->
# src: "_includes/settings.liquid"
jekyllRunLocal:
options:
banner: """{%- assign setting-resourcesBasePathTheme = "/<%= distFolder %>/GCWeb" -%}{%- assign setting-resourcesBasePathWetboew = "/<%= distFolder %>/wet-boew" -%}"""
banner: """{%- assign setting-resourcesBasePathTheme = "/<%= distFolder %>/GCWeb" -%}{%- assign setting-resourcesBasePathWetboew = "/<%= distFolder %>/wet-boew" -%}{%- assign setting-siteBasePath = "/" -%}"""
position: "bottom"
src: "<%= jekyllDist %>/_includes/settings.liquid"
jekyllRunDemo:
options:
banner: """{%- assign setting-resourcesBasePathTheme = "/wet-boew-demos/""" + grunt.option('branch') + """/<%= distFolder %>/GCWeb" -%}{%- assign setting-resourcesBasePathWetboew = "/wet-boew-demos/""" + grunt.option('branch') + """/<%= distFolder %>/wet-boew" -%}"""
banner: """{%- assign setting-resourcesBasePathTheme = "/wet-boew-demos/""" + grunt.option('branch') + """/<%= distFolder %>/GCWeb" -%}{%- assign setting-resourcesBasePathWetboew = "/wet-boew-demos/""" + grunt.option('branch') + """/<%= distFolder %>/wet-boew" -%}{%- assign setting-siteBasePath = "/wet-boew-demos/""" + grunt.option('branch') + """/" -%}"""
position: "bottom"
src: "<%= jekyllDist %>/_includes/settings.liquid"
jekyllRunUnminified:
Expand Down
7 changes: 7 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,13 @@ global:
privacyUrl:
en: "https://www.canada.ca/en/transparency/privacy.html"
fr: "https://www.canada.ca/fr/transparence/confidentialite.html"
breadcrumbs:
en:
- link: "index-en.html"
title: "GCWeb"
fr:
- link: "index-fr.html"
title: "GCWeb"

#
# Override include to use
Expand Down
3 changes: 0 additions & 3 deletions common/ajax-fetch/ajax-fetch-en.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
"title": "Ajax Fetch",
"language": "en",
"altLangPage": "ajax-fetch-fr.html",
"breadcrumbs": [
{ "title": "GCWeb home", "link": "https://wet-boew.github.io/GCWeb/index-en.html" }
],
"dateModified": "2023-08-25"
}
---
Expand Down
3 changes: 0 additions & 3 deletions common/ajax-fetch/ajax-fetch-fr.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
"title": "Récupération de ressource via Ajax",
"language": "fr",
"altLangPage": "ajax-fetch-en.html",
"breadcrumbs": [
{ "title": "GCWeb home", "link": "https://wet-boew.github.io/GCWeb/index-fr.html" }
],
"dateModified": "2023-08-25"
}
---
Expand Down
3 changes: 0 additions & 3 deletions common/alert/alerts-en.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
"title": "GCWeb Alert example",
"language": "en",
"altLangPage": "alerts-fr.html",
"breadcrumbs": [
{ "title": "GCWeb home", "link": "https://wet-boew.github.io/GCWeb/index-en.html" }
],
"dateModified": "2023-02-28"
}
---
Expand Down
3 changes: 0 additions & 3 deletions common/alert/alerts-fr.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
"title": "GCWeb Alert example",
"language": "fr",
"altLangPage": "alerts-en.html",
"breadcrumbs": [
{ "title": "GCWeb home", "link": "https://wet-boew.github.io/GCWeb/index-fr.html" }
],
"dateModified": "2023-02-28"
}
---
Expand Down
3 changes: 0 additions & 3 deletions common/list/list-group-en.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
"title": "List group",
"language": "en",
"altLangPage": "list-group-fr.html",
"breadcrumbs": [
{ "title": "GCWeb home", "link": "https://wet-boew.github.io/GCWeb/index-fr.html" }
],
"dateModified": "2023-03-05"
}
---
Expand Down
3 changes: 0 additions & 3 deletions common/list/list-group-fr.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
"title": "Liste groupé",
"language": "fr",
"altLangPage": "list-group-en.html",
"breadcrumbs": [
{ "title": "GCWeb home", "link": "https://wet-boew.github.io/GCWeb/index-fr.html" }
],
"dateModified": "2023-03-05"
}
---
Expand Down
3 changes: 0 additions & 3 deletions common/list/lists-en.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
"title": "Lists",
"language": "en",
"altLangPage": "lists-fr.html",
"breadcrumbs": [
{ "title": "GCWeb home", "link": "https://wet-boew.github.io/GCWeb/index-en.html" }
],
"dateModified": "2023-03-05"
}
---
Expand Down
3 changes: 0 additions & 3 deletions common/list/lists-fr.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
"title": "Listes",
"language": "fr",
"altLangPage": "lists-en.html",
"breadcrumbs": [
{ "title": "GCWeb home", "link": "https://wet-boew.github.io/GCWeb/index-en.html" }
],
"dateModified": "2023-03-05"
}
---
Expand Down
3 changes: 0 additions & 3 deletions common/scaffolding/forms.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
"title": "Forms - Scaffolding",
"language": "en",
"altLangPage": "formulaires.html",
"breadcrumbs": [
{ "title": "GCWeb home", "link": "https://wet-boew.github.io/GCWeb/index-en.html" }
],
"dateModified": "2023-02-20"
}
---
Expand Down
3 changes: 0 additions & 3 deletions common/scaffolding/formulaires.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
"title": "Formulaires - Échafaudage",
"language": "fr",
"altLangPage": "forms.html",
"breadcrumbs": [
{ "title": "GCWeb accueil", "link": "https://wet-boew.github.io/GCWeb/index-fr.html" }
],
"dateModified": "2023-02-20"
}
---
Expand Down
3 changes: 0 additions & 3 deletions common/tables/table-en.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
"title": "Tables",
"language": "en",
"altLangPage": "table-fr.html",
"breadcrumbs": [
{ "title": "GCWeb home", "link": "https://wet-boew.github.io/GCWeb/index-en.html" }
],
"dateModified": "2023-02-28"
}
---
Expand Down
3 changes: 0 additions & 3 deletions common/tables/table-fr.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
"title": "Tables",
"language": "fr",
"altLangPage": "table-en.html",
"breadcrumbs": [
{ "title": "GCWeb home", "link": "https://wet-boew.github.io/GCWeb/index-fr.html" }
],
"dateModified": "2023-02-28"
}
---
Expand Down
3 changes: 0 additions & 3 deletions common/wb-disable/wb-disable-en.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
"title": "Basic HTML",
"language": "en",
"altLangPage": "wb-disable-fr.html",
"breadcrumbs": [
{ "title": "GCWeb home", "link": "https://wet-boew.github.io/GCWeb/index-en.html" }
],
"dateModified": "2023-08-25"
}
---
Expand Down
3 changes: 0 additions & 3 deletions common/wb-disable/wb-disable-fr.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
"title": "HTML simplifié",
"language": "fr",
"altLangPage": "wb-disable-en.html",
"breadcrumbs": [
{ "title": "GCWeb home", "link": "https://wet-boew.github.io/GCWeb/index-fr.html" }
],
"dateModified": "2023-08-25"
}
---
Expand Down
3 changes: 0 additions & 3 deletions components/gc-dwnld/download_link-en.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
"title": "Download link example",
"language": "en",
"altLangPage": "download_link-fr.html",
"breadcrumbs": [
{ "title": "GCWeb home", "link": "https://wet-boew.github.io/GCWeb/index-en.html" }
],
"dateModified": "2023-04-20"
}
---
Expand Down
3 changes: 0 additions & 3 deletions components/gc-dwnld/download_link-fr.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
"title": "Lien de téléchargement",
"language": "fr",
"altLangPage": "download_link-en.html",
"breadcrumbs": [
{ "title": "GCWeb home", "link": "https://wet-boew.github.io/GCWeb/index-en.html" }
],
"dateModified": "2023-04-20"
}
---
Expand Down
3 changes: 0 additions & 3 deletions components/gc-feeds/gc-feeds-en.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
---
breadcrumbs: [
{ "title": "GCWeb home", "link": "https://wet-boew.github.io/GCWeb/home.html" }
]
dateModified: "2021-06-02"
description: "Documentation and working example of a GC override to the feeds plugin - provisional feature"
language: "en"
Expand Down
3 changes: 0 additions & 3 deletions components/gc-feeds/gc-feeds-fr.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
---
breadcrumbs: [
{ "title": "GCWeb home", "link": "https://wet-boew.github.io/GCWeb/accueil.html" }
]
dateModified: "2021-06-02"
description: "Documentation et exemple pratique d'un remplacement et application de styles GC au plugiciel de fils de syndication - fonctionnalité provisoire"
language: "fr"
Expand Down
3 changes: 0 additions & 3 deletions components/gc-most-requested/gc-most-requested-en.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
---
breadcrumbs: [
{ "title": "GCWeb home", "link": "https://wet-boew.github.io/GCWeb/home.html" }
]
dateModified: "2021-05-21"
description: "Documentation and working example for most requested - provisional feature"
language: "en"
Expand Down
3 changes: 0 additions & 3 deletions components/gc-most-requested/gc-most-requested-fr.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
---
breadcrumbs: [
{ "title": "GCWeb home", "link": "https://wet-boew.github.io/GCWeb/accueil.html" }
]
dateModified: "2021-05-21"
description: "Documentation et exemple pratique de en demande- fonctionnalité provisoire"
language: "fr"
Expand Down
1 change: 0 additions & 1 deletion components/gc-servinfo/gc-srvinfo-examples.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"title": "Services and information - Working examples",
"language": "en",
"breadcrumbs": [
{ "title": "GCWeb home", "link": "https://wet-boew.github.io/themes-dist/GCWeb/index-en.html" },
{ "title": "gc-srvinfo", "link": "components/gc-servinfo/gc-srvinfo.html" }
],
"secondlevel": false,
Expand Down
3 changes: 0 additions & 3 deletions components/gc-servinfo/gc-srvinfo.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
{
"title": "Services and information - Common design pattern",
"language": "en",
"breadcrumbs": [
{ "title": "GCWeb home", "link": "https://wet-boew.github.io/themes-dist/GCWeb/index-en.html" }
],
"secondlevel": false,
"dateModified": "2019-01-08",
"share": "true"
Expand Down
15 changes: 7 additions & 8 deletions components/gc-stp-stp/gc-stp-stp-en.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,20 @@
"secondTitle": "2. [Step / section page name]",
"language": "en",
"altLangPage": "gc-stp-stp-fr.html",
"overwriteBreadcrumbs": true,
"breadcrumbs": [
{ "title": "[Institution name]", "link": "#" },
{ "title": "[Topic name]", "link": "#" },
{ "title": "[Service name]", "link": "#" }
{ "title": "[Topic name]", "link": "templates/theme-topic/theme-topic-en.html" }
],
"secondlevel": false,
"dateModified": "2023-09-05",
"share": "true",
"steps": [
{ "name": "1. [Step / section page name]", "link": "index-en.html" },
{ "name": "1. [Step / section page name]", "link": "#" },
{ "name": "2. [Step / section page name]", "isActive": true },
{ "name": "3. [Step / section page name]", "link": "page3-en.html" },
{ "name": "4. [Step / section page name]", "link": "page4-en.html" },
{ "name": "5. [Step / section page name]", "link": "page5-en.html" },
{ "name": "6. [Step / section page name]", "link": "page6-en.html" }
{ "name": "3. [Step / section page name]", "link": "#" },
{ "name": "4. [Step / section page name]", "link": "#" },
{ "name": "5. [Step / section page name]", "link": "#" },
{ "name": "6. [Step / section page name]", "link": "#" }
]
}
---
Expand Down
15 changes: 7 additions & 8 deletions components/gc-stp-stp/gc-stp-stp-fr.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,20 @@
"secondTitle": "2. [Nom de la page de la section ou de l’étape]",
"language": "fr",
"altLangPage": "gc-stp-stp-en.html",
"overwriteBreadcrumbs": true,
"breadcrumbs": [
{ "title": "[Nom de l'institution]", "link": "#" },
{ "title": "[Nom du sujet]", "link": "#" },
{ "title": "[Nom du service]", "link": "#" }
{ "title": "[Nom du sujet]", "link": "templates/theme-topic/theme-topic-fr.html" }
],
"secondlevel": false,
"dateModified": "2023-09-05",
"share": "true",
"steps": [
{ "name": "1. [Nom de la page de la section ou de l’étape]", "link": "index-fr.html" },
{ "name": "1. [Nom de la page de la section ou de l’étape]", "link": "#" },
{ "name": "2. [Nom de la page de la section ou de l’étape]", "isActive": true },
{ "name": "3. [Nom de la page de la section ou de l’étape]", "link": "page3-fr.html" },
{ "name": "4. [Nom de la page de la section ou de l’étape]", "link": "page4-fr.html" },
{ "name": "5. [Nom de la page de la section ou de l’étape]", "link": "page5-fr.html" },
{ "name": "6. [Nom de la page de la section ou de l’étape]", "link": "page6-fr.html" }
{ "name": "3. [Nom de la page de la section ou de l’étape]", "link": "#" },
{ "name": "4. [Nom de la page de la section ou de l’étape]", "link": "#" },
{ "name": "5. [Nom de la page de la section ou de l’étape]", "link": "#" },
{ "name": "6. [Nom de la page de la section ou de l’étape]", "link": "#" }
]
}
---
Expand Down
3 changes: 1 addition & 2 deletions components/gc-table/gc-table-en.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
{
"altLangPage": "gc-table-fr.html",
"breadcrumbs": [
{ "title": "GCWeb home", "link": "https://wet-boew.github.io/GCWeb/index-en.html" },
{ "title": "Provisional functionality", "link": "https://wet-boew.github.io/themes-dist/GCWeb/provisional-en.html" }
{ "title": "Provisional functionality", "link": "components/provisional-en.html" }
],
"dateModified": "2021-06-16",
"description": "Simple responsive gc tables",
Expand Down
3 changes: 1 addition & 2 deletions components/gc-table/gc-table-fr.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
{
"altLangPage": "gc-table-en.html",
"breadcrumbs": [
{ "title": "GCWeb home", "link": "https://wet-boew.github.io/GCWeb/index-fr.html" },
{ "title": "Provisional functionality", "link": "https://wet-boew.github.io/themes-dist/GCWeb/provisional-fr.html" }
{ "title": "Provisional functionality", "link": "components/provisional-fr.html" }
],
"dateModified": "2021-06-16",
"description": "Tableau simple responsive pour le GC",
Expand Down
3 changes: 0 additions & 3 deletions components/gc-toc/toc-en.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
"title": "In-page table of contents",
"language": "en",
"altLangPage": "toc-fr.html",
"breadcrumbs": [
{ "title": "GCWeb home", "link": "https://wet-boew.github.io/GCWeb/index-en.html" }
],
"dateModified": "2023-06-16"
}
---
Expand Down
3 changes: 0 additions & 3 deletions components/gc-toc/toc-fr.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
"title": "Table des matières à l'intérieur de la page",
"language": "fr",
"altLangPage": "toc-en.html",
"breadcrumbs": [
{ "title": "GCWeb home", "link": "https://wet-boew.github.io/GCWeb/index-fr.html" }
],
"dateModified": "2023-06-16"
}
---
Expand Down
3 changes: 0 additions & 3 deletions components/header-rwd/well-header-rwd-en.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
"title": "Well header responsive - GCWeb theme",
"language": "en",
"altLangPage": "well-header-rwd-fr.html",
"breadcrumbs": [
{ "title": "GCWeb home", "link": "https://wet-boew.github.io/themes-dist/GCWeb/index-en.html" }
],
"secondlevel": false,
"dateModified": "2019-05-09",
"share": "true"
Expand Down
3 changes: 0 additions & 3 deletions components/header-rwd/well-header-rwd-fr.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
"title": "Entête well responsive - Thème de GCWeb",
"language": "fr",
"altLangPage": "well-header-rwd-en.html",
"breadcrumbs": [
{ "title": "Accueil GCWeb", "link": "https://wet-boew.github.io/themes-dist/GCWeb/index-fr.html" }
],
"secondlevel": false,
"dateModified": "2019-05-09",
"share": "true"
Expand Down
3 changes: 0 additions & 3 deletions components/labels/labels-en.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
"title": "Labels",
"language": "en",
"altLangPage": "labels-fr.html",
"breadcrumbs": [
{ "title": "GCWeb home", "link": "https://wet-boew.github.io/GCWeb/index-en.html" }
],
"description": "Labels are use to describe and highlight text-based (non-numerical) information.",
"dateModified": "2023-07-11"
}
Expand Down
3 changes: 0 additions & 3 deletions components/labels/labels-fr.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
"title": "Étiquettes",
"language": "fr",
"altLangPage": "labels-en.html",
"breadcrumbs": [
{ "title": "GCWeb home", "link": "https://wet-boew.github.io/GCWeb/index-fr.html" }
],
"description": "Les étiquettes sont utilisés pour décrire et mettre en surbrillance des renseignements textuels (non numériques).",
"dateModified": "2023-07-11"
}
Expand Down
3 changes: 0 additions & 3 deletions components/list/list-en.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
"title": "List - Additional styles - GCWeb theme V5",
"language": "en",
"altLangPage": "list-fr.html",
"breadcrumbs": [
{ "title": "GCWeb home", "link": "https://wet-boew.github.io/themes-dist/GCWeb/index-en.html" }
],
"secondlevel": false,
"dateModified": "2022-07-07",
"share": "true"
Expand Down
3 changes: 0 additions & 3 deletions components/list/list-fr.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
"title": "Liste - Styles additionels - Thème de GCWeb V5",
"language": "fr",
"altLangPage": "list-en.html",
"breadcrumbs": [
{ "title": "Accueil GCWeb", "link": "https://wet-boew.github.io/themes-dist/GCWeb/index-fr.html" }
],
"secondlevel": false,
"dateModified": "2022-07-07",
"share": "true"
Expand Down
Loading

0 comments on commit a0c916f

Please sign in to comment.