generated from codegouvfr/eleventy-dsfr
-
Notifications
You must be signed in to change notification settings - Fork 6
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
29 changed files
with
220 additions
and
209 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
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,13 +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"> | ||
{{ 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,30 @@ | ||
{% from "components/component.njk" import component with context %} | ||
{% 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"> | ||
{{ component("card", { | ||
url: previousPost.url, | ||
title: previousPost.data.title, | ||
date: previousPost.date, | ||
addClass: "fr-card--horizontal-tier fr-card--grey fr-card--no-border fr-card--sm" | ||
}) }} | ||
</div> | ||
{% endif %} | ||
{% if nextPost %} | ||
<div class="fr-col-12 fr-col-md-6"> | ||
{{ component("card", { | ||
url: nextPost.url, | ||
title: nextPost.data.title, | ||
date: nextPost.date, | ||
addClass: "fr-card--horizontal-tier fr-card--grey fr-card--no-border fr-card--sm" | ||
}) }} | ||
</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
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,9 +1,9 @@ | ||
--- | ||
title: About | ||
layout: layouts/page.njk | ||
eleventyNavigation: | ||
key: About | ||
order: 3 | ||
--- | ||
# About | ||
|
||
We are the mission logiciels libres. |
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.