Skip to content

Commit

Permalink
Minor Topic page: stabilizing topic page template v2.0 (#2388)
Browse files Browse the repository at this point in the history
* Topic page: stabilizing topic page template v2.0
* Topic: updating topic template and including gc-contributors

Content - GC Features - Added code sample and updated working example to match the documented pattern.
  • Loading branch information
Garneauma authored Aug 13, 2024
1 parent d32ef97 commit bb30432
Show file tree
Hide file tree
Showing 23 changed files with 778 additions and 686 deletions.
468 changes: 226 additions & 242 deletions _data/templates.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _includes/components/gc-features/features.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ <h2>Features</h2>
{% for i in (1..3) %}
<div class="col-lg-4 col-sm-6 hght-inhrt">
<div class="well well-sm eqht-trgt hght-inhrt">
<img src="https://via.placeholder.com/360x203/000000/FFFFFF.png" alt="">
<img src="https://dummyimage.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>
Expand Down
20 changes: 20 additions & 0 deletions _includes/components/gc-features/one-tile-hidden-title.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{%- comment -%}

++++++++++++++++++++++++++++++++++
+ List of features - One tile (invisible title)
++++++++++++++++++++++++++++++++++

{%- endcomment -%}

<section class="gc-features">
<h2 class="wb-inv">{% if page.language == "en" %}Featured{% else %}En vedette{% endif %}</h2>
<div class="row">
<div class="col-sm-6">
<img src="https://dummyimage.com/360x203/000000/FFFFFF.png" alt="" class="thumbnail">
</div>
<div class="col-sm-6">
<h3><a class="stretched-link" href="#">{% if page.language == "en" %}[Feature hyperlink text]{% else %}[Lien vers l’élément en vedette]{% endif %}</a></h3>
<p>{% if page.language == "en" %}Brief description of the feature being promoted.{% else %}Brève description de l’élément en vedette.{% endif %}</p>
</div>
</div>
</section>
2 changes: 1 addition & 1 deletion _includes/components/gc-features/two-tiles.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ <h2>Features</h2>
{% for i in (1..2) %}
<div class="col-sm-6 hght-inhrt">
<div class="well well-sm eqht-trgt hght-inhrt">
<img src="https://via.placeholder.com/360x203/000000/FFFFFF.png" alt="">
<img src="https://dummyimage.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>
Expand Down
8 changes: 4 additions & 4 deletions components/gc-features/gc-features-en.html
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ <h3>Two-tiles left-aligned</h3>
<div class="row mrgn-tp-xl">
<div class="col-md-8">
<section class="gc-features">
<h2>Features</h2>
<h2 class="wb-inv">Features</h2>
<div class="row wb-eqht-grd">
<div class="col-sm-6">
<div class="well well-sm eqht-trgt">
Expand Down Expand Up @@ -142,7 +142,7 @@ <h2>Other Component</h2>
</div>
<div class="col-md-8">
<section class="gc-features">
<h2>Features</h2>
<h2 class="wb-inv">Features</h2>
<div class="row wb-eqht-grd">
<div class="col-sm-6">
<div class="well well-sm eqht-trgt">
Expand All @@ -167,7 +167,7 @@ <h3>One-tile left-aligned</h3>
<div class="row mrgn-tp-xl">
<div class="col-md-8">
<section class="gc-features">
<h2>Featured</h2>
<h2 class="wb-inv">Featured</h2>
<div class="row">
<div class="col-sm-6">
<img src="img/feature-360x203.png" alt="" class="thumbnail">
Expand All @@ -193,7 +193,7 @@ <h2>Other Component</h2>
</div>
<div class="col-md-8">
<section class="gc-features">
<h2>Featured</h2>
<h2 class="wb-inv">Featured</h2>
<div class="row">
<div class="col-sm-6">
<img src="img/feature-360x203.png" alt="" class="thumbnail">
Expand Down
8 changes: 4 additions & 4 deletions components/gc-features/gc-features-fr.html
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ <h3>Deux tuiles alignées à gauche</h3>
<div class="row mrgn-tp-xl">
<div class="col-md-8">
<section class="gc-features">
<h2>En vedette</h2>
<h2 class="wb-inv">En vedette</h2>
<div class="row wb-eqht-grd">
<div class="col-sm-6">
<div class="well well-sm eqht-trgt">
Expand Down Expand Up @@ -141,7 +141,7 @@ <h2>Autre composant</h2>
</div>
<div class="col-md-8">
<section class="gc-features">
<h2>En vedette</h2>
<h2 class="wb-inv">En vedette</h2>
<div class="row wb-eqht-grd">
<div class="col-sm-6">
<div class="well well-sm eqht-trgt">
Expand All @@ -166,7 +166,7 @@ <h3>Une tuile alignée à gauche</h3>
<div class="row mrgn-tp-xl">
<div class="col-md-8">
<section class="gc-features">
<h2>En vedette</h2>
<h2 class="wb-inv">En vedette</h2>
<div class="row">
<div class="col-sm-6">
<img src="img/feature-360x203.png" alt="" class="thumbnail">
Expand All @@ -192,7 +192,7 @@ <h2>Autre composant</h2>
</div>
<div class="col-md-8">
<section class="gc-features">
<h2>En vedette</h2>
<h2 class="wb-inv">En vedette</h2>
<div class="row">
<div class="col-sm-6">
<img src="img/feature-360x203.png" alt="" class="thumbnail">
Expand Down
2 changes: 1 addition & 1 deletion components/gc-features/samples/features.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ <h2>Features</h2>
{% for i in (1..3) %}
<div class="col-lg-4 col-sm-6 hght-inhrt">
<div class="well well-sm eqht-trgt hght-inhrt">
<img src="https://via.placeholder.com/360x203/000000/FFFFFF.png" alt="">
<img src="https://dummyimage.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>
Expand Down
20 changes: 20 additions & 0 deletions components/gc-features/samples/one-tile-hidden-title.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{%- comment -%}

++++++++++++++++++++++++++++++++++
+ List of features - One tile (invisible title)
++++++++++++++++++++++++++++++++++

{%- endcomment -%}

<section class="gc-features">
<h2 class="wb-inv">{% if page.language == "en" %}Featured{% else %}En vedette{% endif %}</h2>
<div class="row">
<div class="col-sm-6">
<img src="https://dummyimage.com/360x203/000000/FFFFFF.png" alt="" class="thumbnail">
</div>
<div class="col-sm-6">
<h3><a class="stretched-link" href="#">{% if page.language == "en" %}[Feature hyperlink text]{% else %}[Lien vers l’élément en vedette]{% endif %}</a></h3>
<p>{% if page.language == "en" %}Brief description of the feature being promoted.{% else %}Brève description de l’élément en vedette.{% endif %}</p>
</div>
</div>
</section>
2 changes: 1 addition & 1 deletion components/gc-features/samples/two-tiles.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ <h2>Features</h2>
{% for i in (1..2) %}
<div class="col-sm-6 hght-inhrt">
<div class="well well-sm eqht-trgt hght-inhrt">
<img src="https://via.placeholder.com/360x203/000000/FFFFFF.png" alt="">
<img src="https://dummyimage.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>
Expand Down
200 changes: 0 additions & 200 deletions templates/lowest-topic/index.json-ld

This file was deleted.

34 changes: 0 additions & 34 deletions templates/theme-topic/index.json-ld

This file was deleted.

Loading

0 comments on commit bb30432

Please sign in to comment.