Skip to content

Commit

Permalink
Build, Content - Merge pull request #2091 from Garneauma/build-warnin…
Browse files Browse the repository at this point in the history
…gs-8

Build warnings: dept features, news

* Build - Fixing Jekyll compilation warning
* Content change - Various working example are now complete
  • Loading branch information
duboisp authored Feb 28, 2023
2 parents 70aefed + c9f14e8 commit dab5ea4
Show file tree
Hide file tree
Showing 24 changed files with 569 additions and 51 deletions.
13 changes: 13 additions & 0 deletions _data/templates.json
Original file line number Diff line number Diff line change
Expand Up @@ -806,6 +806,19 @@
"componentName": "news",
"status": "stable",
"pages": {
"docs": [

{
"title": "News page",
"language": "en",
"path": "news-doc-en.html"
},
{
"title": "Page de nouvelles",
"language": "fr",
"path": "news-doc-fr.html"
}
],
"examples": [
{
"title": "News",
Expand Down
31 changes: 31 additions & 0 deletions _includes/components/gc-features/features.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{%- comment -%}

++++++++++++++++++++++++++++++++++
+ List of features
++++++++++++++++++++++++++++++++++

{%- endcomment -%}

<section class="gc-features">
{%- if page.language == "fr" -%}
<h2>En vedette</h2>
{%- else -%}
<h2>Features</h2>
{%- endif -%}
<div class="row wb-eqht-grd">
{% for i in (1..3) %}
<div class="col-lg-4 col-sm-6 hght-inhrt">
<div class="well well-sm eqht-trgt wb-init wb-eqht-grd-inited hght-inhrt" id="wb-auto-5">
<img src="https://via.placeholder.com/360x203/000000/FFFFFF.png" alt="">
{%- if page.language == "fr" -%}
<h3><a href="#" class="stretched-link">[Lien vers l’élément en vedette]</a></h3>
<p>Brève description de l’élément en vedette. Brève description de l’élément en vedette.</p>
{%- else -%}
<h3><a href="#" class="stretched-link">[Feature hyperlink text]</a></h3>
<p>Brief description of the feature being promoted. Brief description of the feature being promoted.</p>
{%- endif -%}
</div>
</div>
{% endfor %}
</div>
</section>
20 changes: 10 additions & 10 deletions _includes/components/gc-follow-us/gc-follow-us.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<section class="provisional gc-followus">
<h2>
{%- if include.isInline -%}
{%- if i18nText-lang == "fr" -%}
{%- if page.language == "fr" -%}
Suivez-nous
{%- else -%}
Follow us
{%- endif -%}
{%- else -%}
{%- if i18nText-lang == "fr" -%}
{%- if page.language == "fr" -%}
Dans les médias sociaux
{%- else -%}
On social media
Expand All @@ -17,7 +17,7 @@ <h2>
<ul{% if include.isInline %} class="list-inline"{% endif %}>
<li>
<a href="#facebook" class="facebook wb-lbx">
{%- if i18nText-lang == "fr" -%}
{%- if page.language == "fr" -%}
<span class="wb-inv">Facebook&nbsp;: </span>NomPageFacebook
{%- else -%}
<span class="wb-inv">Facebook: </span>FacebookPageName
Expand All @@ -26,7 +26,7 @@ <h2>
</li>
<li>
<a href="#" rel="external" class="twitter">
{%- if i18nText-lang == "fr" -%}
{%- if page.language == "fr" -%}
<span class="wb-inv">Twitter&nbsp;: </span>@CompteTwitter
{%- else -%}
<span class="wb-inv">Twitter: </span>@TwitterAccount
Expand All @@ -35,7 +35,7 @@ <h2>
</li>
<li>
<a href="#" rel="external" class="youtube">
{%- if i18nText-lang == "fr" -%}
{%- if page.language == "fr" -%}
<span class="wb-inv">Youtube&nbsp;: </span>NomYouTube
{%- else -%}
<span class="wb-inv">Youtube: </span>YouTubeName
Expand All @@ -44,7 +44,7 @@ <h2>
</li>
<li>
<a href="#" rel="external" class="instagram">
{%- if i18nText-lang == "fr" -%}
{%- if page.language == "fr" -%}
<span class="wb-inv">Instagram&nbsp;: </span>NomInstagram
{%- else -%}
<span class="wb-inv">Instagram: </span>InstagramName
Expand All @@ -53,7 +53,7 @@ <h2>
</li>
<li>
<a href="#" rel="external" class="linkedin">
{%- if i18nText-lang == "fr" -%}
{%- if page.language == "fr" -%}
<span class="wb-inv">LinkedIn&nbsp;: </span>NomLinkedIn
{%- else -%}
<span class="wb-inv">LinkedIn: </span>LinkedInName
Expand All @@ -70,7 +70,7 @@ <h2 class="modal-title" id="lbx-title">Facebook</h2>
<ul class="list-unstyled lst-spcd">
<li>
<a href="#" rel="external">
{%- if i18nText-lang == "fr" -%}
{%- if page.language == "fr" -%}
[Titre du premier compte Facebook]
{%- else -%}
[First Facebook account title]
Expand All @@ -79,7 +79,7 @@ <h2 class="modal-title" id="lbx-title">Facebook</h2>
</li>
<li>
<a href="#" rel="external">
{%- if i18nText-lang == "fr" -%}
{%- if page.language == "fr" -%}
[Titre du deuxième compte Facebook]
{%- else -%}
[Second Facebook account title]
Expand All @@ -90,7 +90,7 @@ <h2 class="modal-title" id="lbx-title">Facebook</h2>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-sm btn-primary pull-left popup-modal-dismiss">
{%- if i18nText-lang == "fr" -%}
{%- if page.language == "fr" -%}
Fermer<span class="wb-inv">Fermer la fenêtre superposée</span>
{%- else -%}
Close<span class="wb-inv">Close overlay</span>
Expand Down
31 changes: 31 additions & 0 deletions components/gc-features/samples/features.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{%- comment -%}

++++++++++++++++++++++++++++++++++
+ List of features
++++++++++++++++++++++++++++++++++

{%- endcomment -%}

<section class="gc-features">
{%- if page.language == "fr" -%}
<h2>En vedette</h2>
{%- else -%}
<h2>Features</h2>
{%- endif -%}
<div class="row wb-eqht-grd">
{% for i in (1..3) %}
<div class="col-lg-4 col-sm-6 hght-inhrt">
<div class="well well-sm eqht-trgt wb-init wb-eqht-grd-inited hght-inhrt" id="wb-auto-5">
<img src="https://via.placeholder.com/360x203/000000/FFFFFF.png" alt="">
{%- if page.language == "fr" -%}
<h3><a href="#" class="stretched-link">[Lien vers l’élément en vedette]</a></h3>
<p>Brève description de l’élément en vedette. Brève description de l’élément en vedette.</p>
{%- else -%}
<h3><a href="#" class="stretched-link">[Feature hyperlink text]</a></h3>
<p>Brief description of the feature being promoted. Brief description of the feature being promoted.</p>
{%- endif -%}
</div>
</div>
{% endfor %}
</div>
</section>
20 changes: 10 additions & 10 deletions components/gc-follow-us/samples/gc-follow-us.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<section class="provisional gc-followus">
<h2>
{%- if include.isInline -%}
{%- if i18nText-lang == "fr" -%}
{%- if page.language == "fr" -%}
Suivez-nous
{%- else -%}
Follow us
{%- endif -%}
{%- else -%}
{%- if i18nText-lang == "fr" -%}
{%- if page.language == "fr" -%}
Dans les médias sociaux
{%- else -%}
On social media
Expand All @@ -17,7 +17,7 @@ <h2>
<ul{% if include.isInline %} class="list-inline"{% endif %}>
<li>
<a href="#facebook" class="facebook wb-lbx">
{%- if i18nText-lang == "fr" -%}
{%- if page.language == "fr" -%}
<span class="wb-inv">Facebook&nbsp;: </span>NomPageFacebook
{%- else -%}
<span class="wb-inv">Facebook: </span>FacebookPageName
Expand All @@ -26,7 +26,7 @@ <h2>
</li>
<li>
<a href="#" rel="external" class="twitter">
{%- if i18nText-lang == "fr" -%}
{%- if page.language == "fr" -%}
<span class="wb-inv">Twitter&nbsp;: </span>@CompteTwitter
{%- else -%}
<span class="wb-inv">Twitter: </span>@TwitterAccount
Expand All @@ -35,7 +35,7 @@ <h2>
</li>
<li>
<a href="#" rel="external" class="youtube">
{%- if i18nText-lang == "fr" -%}
{%- if page.language == "fr" -%}
<span class="wb-inv">Youtube&nbsp;: </span>NomYouTube
{%- else -%}
<span class="wb-inv">Youtube: </span>YouTubeName
Expand All @@ -44,7 +44,7 @@ <h2>
</li>
<li>
<a href="#" rel="external" class="instagram">
{%- if i18nText-lang == "fr" -%}
{%- if page.language == "fr" -%}
<span class="wb-inv">Instagram&nbsp;: </span>NomInstagram
{%- else -%}
<span class="wb-inv">Instagram: </span>InstagramName
Expand All @@ -53,7 +53,7 @@ <h2>
</li>
<li>
<a href="#" rel="external" class="linkedin">
{%- if i18nText-lang == "fr" -%}
{%- if page.language == "fr" -%}
<span class="wb-inv">LinkedIn&nbsp;: </span>NomLinkedIn
{%- else -%}
<span class="wb-inv">LinkedIn: </span>LinkedInName
Expand All @@ -70,7 +70,7 @@ <h2 class="modal-title" id="lbx-title">Facebook</h2>
<ul class="list-unstyled lst-spcd">
<li>
<a href="#" rel="external">
{%- if i18nText-lang == "fr" -%}
{%- if page.language == "fr" -%}
[Titre du premier compte Facebook]
{%- else -%}
[First Facebook account title]
Expand All @@ -79,7 +79,7 @@ <h2 class="modal-title" id="lbx-title">Facebook</h2>
</li>
<li>
<a href="#" rel="external">
{%- if i18nText-lang == "fr" -%}
{%- if page.language == "fr" -%}
[Titre du deuxième compte Facebook]
{%- else -%}
[Second Facebook account title]
Expand All @@ -90,7 +90,7 @@ <h2 class="modal-title" id="lbx-title">Facebook</h2>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-sm btn-primary pull-left popup-modal-dismiss">
{%- if i18nText-lang == "fr" -%}
{%- if page.language == "fr" -%}
Fermer<span class="wb-inv">Fermer la fenêtre superposée</span>
{%- else -%}
Close<span class="wb-inv">Close overlay</span>
Expand Down
2 changes: 1 addition & 1 deletion index-en.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ css:
</div>
<div class="col-xs-12 col-md-auto pull-right">
<p><a href="https://github.com/wet-boew/GCWeb/archive/v12.9.0.zip" class="btn btn-primary">Download GCWeb theme <strong>v12.9.0</strong></a><br />
<small>(<time>{{ page.dateModified | date: %F }}</time> - <a href="https://github.com/wet-boew/gcweb/releases/latest">Release notes</a>)</small></p>
<small>(<time>{{ page.dateModified | date: '%F' }}</time> - <a href="https://github.com/wet-boew/gcweb/releases/latest">Release notes</a>)</small></p>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion index-fr.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ css:
</div>
<div class="col-xs-12 col-md-auto pull-right">
<p><a href="https://github.com/wet-boew/GCWeb/archive/v12.9.0.zip" class="btn btn-primary">Télécharger le thème <strong>GCWeb v12.9.0</strong></a><br />
<small>(<time>{{ page.dateModified | date: %F }}</time> - <a href="https://github.com/wet-boew/gcweb/releases/latest">Note de version</a>)</small></p>
<small>(<time>{{ page.dateModified | date: '%F' }}</time> - <a href="https://github.com/wet-boew/gcweb/releases/latest">Note de version</a>)</small></p>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion templates/gc-audience-en.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@
</div>
</div>
{% include components/gc-servinfo/2col.html %}
{{>deptfeatures}}
{% include components/gc-features/features.html %}
2 changes: 1 addition & 1 deletion templates/gc-audience-fr.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@
</div>
</div>
{% include components/gc-servinfo/2col.html %}
{{>deptfeatures}}
{% include components/gc-features/features.html %}
2 changes: 1 addition & 1 deletion templates/institutional/institution-arms-en.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,4 @@ <h2>Contact us</h2>
</div>
{% include templates/whtwedo-3-items.html %}
{% include components/gc-corporate/inst-info.html %}
{{>deptfeatures}}
{% include components/gc-features/features.html %}
2 changes: 1 addition & 1 deletion templates/institutional/institution-arms-fr.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,4 @@ <h2>Contactez-nous</h2>
</div>
{% include templates/whtwedo-3-items.html %}
{% include components/gc-corporate/inst-info.html %}
{{>deptfeatures}}
{% include components/gc-features/features.html %}
2 changes: 1 addition & 1 deletion templates/institutional/institution-en.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,4 @@ <h2>Contact us</h2>
</div>
{% include templates/whtwedo-3-items.html %}
{% include components/gc-corporate/inst-info.html %}
{{>deptfeatures}}
{% include components/gc-features/features.html %}
2 changes: 1 addition & 1 deletion templates/institutional/institution-fr.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,4 @@ <h2>Contactez-nous</h2>
</div>
{% include templates/whtwedo-3-items.html %}
{% include components/gc-corporate/inst-info.html %}
{{>deptfeatures}}
{% include components/gc-features/features.html %}
13 changes: 13 additions & 0 deletions templates/news/index.json-ld
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,19 @@
"componentName": "news",
"status": "stable",
"pages": {
"docs": [

{
"title": "News page",
"language": "en",
"path": "news-doc-en.html"
},
{
"title": "Page de nouvelles",
"language": "fr",
"path": "news-doc-fr.html"
}
],
"examples": [
{
"title": "News",
Expand Down
Loading

0 comments on commit dab5ea4

Please sign in to comment.