forked from codegouvfr/eleventy-dsfr
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
47 changed files
with
593 additions
and
634 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,28 @@ | ||
{% if not tile %}{% set tile = params %}{% endif %} | ||
<div class="fr-tile fr-enlarge-link"> | ||
<div class="fr-tile__body"> | ||
{% set tileUrl = tile.url | locale_url or tile.externalUrl %} | ||
{% set urlDescription %}{{ tile.title }}{% if tile.externalUrl %} - {{ "new_window" | i18n }}{% endif %}{% endset %} | ||
<h4 class="fr-tile__title"> | ||
<a class="fr-tile__link" href="{{ tileUrl }}" | ||
title="{{ urlDescription }}"{% if tile.externalUrl %} target="_blank" rel="noopener"{% endif %}> | ||
{{ tile.title }} | ||
</a> | ||
</h4> | ||
<p class="fr-tile__desc">{{ tile.description | safe }}</p> | ||
<div class="fr-tile__content"> | ||
{% set tileUrl = tile.url | locale_url or tile.externalUrl %} | ||
{% set urlDescription %}{{ tile.title }}{% if tile.externalUrl %} - {{ "new_window" | i18n }}{% endif %}{% endset %} | ||
<h4 class="fr-tile__title"> | ||
<a class="fr-tile__link" href="{{ tileUrl }}" | ||
title="{{ urlDescription }}"{% if tile.externalUrl %} target="_blank" rel="noopener"{% endif %}> | ||
{{ tile.title }} | ||
</a> | ||
</h4> | ||
<p class="fr-tile__desc">{{ tile.description }}</p> | ||
</div> | ||
</div> | ||
{% if tile.imageSrc %} | ||
<div class="fr-tile__img"> | ||
<img src="{{ tile.imageSrc }}" alt="" class="fr-responsive-img"> | ||
{% if tile.pictogram %} | ||
<div class="fr-tile__header"> | ||
<div class="fr-tile__pictogram"> | ||
{% set pictogramUrl = "/artwork/pictograms/" + tile.pictogram %} | ||
<svg aria-hidden="true" class="fr-artwork" viewBox="0 0 80 80" width="80px" height="80px"> | ||
<use class="fr-artwork-decorative" href="{{ pictogramUrl | htmlBaseUrl }}#artwork-decorative"></use> | ||
<use class="fr-artwork-minor" href="{{ pictogramUrl | htmlBaseUrl }}#artwork-minor"></use> | ||
<use class="fr-artwork-major" href="{{ pictogramUrl | htmlBaseUrl }}#artwork-major"></use> | ||
</svg> | ||
</div> | ||
</div> | ||
{% endif %} | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
--- | ||
layout: layouts/base.njk | ||
--- | ||
<div class="fr-container--fluid fr-pb-6w"> | ||
<div class="fr-mb-6w"> | ||
{{ content | safe }} | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,29 @@ | ||
--- | ||
layout: layouts/base.njk | ||
--- | ||
<div class="fr-container fr-py-8v"> | ||
{% if showBreadcrumb %} | ||
{% include "components/breadcrumb.njk" %} | ||
{% endif %} | ||
<div class="fr-grid-row" data-pagefind-body> | ||
<div class="fr-col-12"> | ||
{% if title %}<h1>{{ title }}</h1>{% endif %} | ||
{{ content | safe }} | ||
<div class="fr-mb-6w"> | ||
<div class="fr-py-6w fr-background-alt--blue-cumulus"> | ||
<div class="fr-container"> | ||
<div class="fr-grid-row"> | ||
<div class="fr-col-10"> | ||
{% if showBreadcrumb %} | ||
{% include "components/breadcrumb.njk" %} | ||
{% endif %} | ||
<h1 class="fr-mt-6v">{{ title }}</h1> | ||
{% if description %} | ||
<p class="fr-text--lead"> | ||
{{ description }} | ||
</p> | ||
{% endif %} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="fr-container fr-mt-6w" data-pagefind-body> | ||
<div class="fr-grid-row"> | ||
<div class="fr-col-12"> | ||
{{ content | safe }} | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{% set previousPost = currentPosts | filterCollectionLang | getPreviousCollectionItem %} | ||
{% set nextPost = currentPosts | filterCollectionLang | getNextCollectionItem %} | ||
{% if nextPost or previousPost %} | ||
<div class="fr-my-6w"> | ||
<h2>{{ "read_also" | i18n }}</h2> | ||
<div class="fr-grid-row fr-grid-row--gutters fr-mb-6w"> | ||
{% if previousPost %} | ||
<div class="fr-col-12 fr-col-md-6"> | ||
<div class="fr-card fr-enlarge-link fr-card--grey fr-card--no-border"> | ||
<div class="fr-card__body"> | ||
<p class="fr-card__detail fr-icon-time-fill"> | ||
<time datetime="{{ previousPost.date | htmlDateString }}"> | ||
{{ previousPost.date | readableDate }} | ||
</time> | ||
</p> | ||
<h4 class="fr-card__title"> | ||
<a href="{{ previousPost.url }}" class="fr-card__link">{{ previousPost.data.title }}</a> | ||
</h4> | ||
</div> | ||
</div> | ||
</div> | ||
{% endif %} | ||
{% if nextPost %} | ||
<div class="fr-col-12 fr-col-md-6"> | ||
<div class="fr-card fr-enlarge-link fr-card--grey fr-card--no-border"> | ||
<div class="fr-card__body"> | ||
<p class="fr-card__detail fr-icon-time-fill"> | ||
<time datetime="{{ nextPost.date | htmlDateString }}"> | ||
{{ nextPost.date | readableDate }} | ||
</time> | ||
</p> | ||
<h4 class="fr-card__title"> | ||
<a href="{{ nextPost.url }}" class="fr-card__link">{{ nextPost.data.title }}</a> | ||
</h4> | ||
</div> | ||
</div> | ||
</div> | ||
{% endif %} | ||
</div> | ||
</div> | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.