Skip to content

Commit 21b3b9f

Browse files
authored
GCWeb Jekyll: adding possibility to include GCDS in global proprties (#2536)
1 parent 39695f6 commit 21b3b9f

File tree

5 files changed

+27
-5
lines changed

5 files changed

+27
-5
lines changed

_config.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@ global:
4747
applicationURL:
4848
en: "#"
4949
fr: "#"
50+
# Include GCDS component libraries, excluding its CSS utilities
51+
# - (default) unspecified: GCDS librarires are not going to be load
52+
# - true: Will use the latest GCDS libraries
53+
# - String: The value must represent a specific GCDS version number, when specified it will use that version number
54+
# gcds: "0.33.0"
55+
5056
#
5157
# Override include to use
5258
# includes:

_data/common.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@
205205
"pages": {
206206
"docs": [
207207
{
208-
"title": "Colour (Foreground/Background)",
208+
"title": "Color (Foreground/Background)",
209209
"language": "en",
210210
"path": "colour-en.html"
211211
},

_data/components.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@
564564
"fr": "Mars 2024 - Stabilisation de la composante."
565565
},
566566
{
567-
"en": "August 2023 - Adding possibility to customize the background colour.",
567+
"en": "August 2023 - Adding possibility to customize the background color.",
568568
"fr": "Août 2023 - Ajout de la possibilité de personnaliser la couleur de fond."
569569
},
570570
{
@@ -600,7 +600,7 @@
600600
},
601601
"notes": {
602602
"en": [
603-
"When customizing the background colour, the component will automatically apply the correct colour to the text: <code>#FFFFFF</code> for dark colours, <code>#333333</code> for light colours, <code>#000000</code> for colours in-between."
603+
"When customizing the background color, the component will automatically apply the correct color to the text: <code>#FFFFFF</code> for dark colours, <code>#333333</code> for light colours, <code>#000000</code> for colours in-between."
604604
],
605605
"fr": [
606606
"Lorsque la couleur de fond est personnalisée, la composante appliquera automatiquement la bonne couleur au texte : <code>#FFFFFF</code> pour les couleurs sombres, <code>#333333</code> pour les couleurs claires, <code>#000000</code> pour les couleurs intermédiaires."

_data/templates.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1127,11 +1127,11 @@
11271127
},
11281128
"title": {
11291129
"en": "Organizational profile",
1130-
"fr": "Profil organisationnel"
1130+
"fr": "Profil organisationel"
11311131
},
11321132
"description": {
11331133
"en": "Organizational profile templates",
1134-
"fr": "Gabarit à propos de page de profil organisationnel"
1134+
"fr": "Gabarit à propos de page de profil organisationel"
11351135
},
11361136
"modified": "2017-12-05",
11371137
"componentName": "organizational",

sites/resources-inc/head.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,22 @@
1+
{%- if site.global.gcds and site.global.gcds != false -%}
2+
{%- capture gcds-version -%}
3+
{%- if site.global.gcds == true -%}
4+
latest
5+
{%- else -%}
6+
{{ site.global.gcds }}
7+
{%- endif -%}
8+
{%- endcapture -%}
9+
10+
<!-- GC Design System -->
11+
<link rel="stylesheet" href="https://cdn.design-system.alpha.canada.ca/@cdssnc/gcds-components@{{ gcds-version }}/dist/gcds/gcds.css">
12+
<script type="module" src="https://cdn.design-system.alpha.canada.ca/@cdssnc/gcds-components@{{ gcds-version }}/dist/gcds/gcds.esm.js"></script>
13+
<script nomodule src="https://cdn.design-system.alpha.canada.ca/@cdssnc/gcds-components@{{ gcds-version }}/dist/gcds/gcds.js"></script>
14+
{% endif %}
15+
116
<link href="{{ setting-resourcesBasePathTheme }}/assets/favicon.ico" rel="icon" type="image/x-icon" />
217
<link rel="stylesheet" href="{{ setting-resourcesBasePathTheme }}/css/theme{{ setting-minifiedSuffix }}.css" />
318
<noscript><link rel="stylesheet" href="{{ setting-resourcesBasePathWetboew }}/css/noscript{{ setting-minifiedSuffix }}.css" /></noscript>
19+
420
{%- if page.css.first -%}
521
{%- for sheet in page.css -%}
622
{%- if sheet.first -%}

0 commit comments

Comments
 (0)