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
17 changed files
with
151 additions
and
54 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
Submodule awesome
updated
8 files
+28 −32 | README.fr.md | |
+28 −31 | README.md | |
+32 −0 | crosswalk.csv | |
+0 −40 | dist/rdvServicePublic_publiccode.yml | |
+2 −2 | dist/vitam_publiccode.yml | |
+0 −61 | metadata.md | |
+144 −0 | schema.md | |
+17 −17 | template.publiccode.yml |
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,13 @@ | ||
const EleventyFetch = require("@11ty/eleventy-fetch"); | ||
|
||
module.exports = async function () { | ||
const URL = "https://code.gouv.fr/data/sill.json"; | ||
// const URL = "https://code.gouv.fr/sill/api/sill.json"; // To use when SILL is up | ||
|
||
let sill = await EleventyFetch(URL, { | ||
duration: "2w", | ||
type: "json" | ||
}); | ||
|
||
return sill; | ||
}; |
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 @@ | ||
{% if not card %}{% set card = params %}{% endif %} | ||
<div class="fr-card fr-enlarge-link fr-card--horizontal-half fr-card--grey fr-card--no-border fr-card--sm"> | ||
<div class="fr-card__body"> | ||
<div class="fr-card__content"> | ||
{% set cardUrl = card.url | locale_url or card.externalUrl %} | ||
<h3 class="fr-card__title"><a href="{{ cardUrl }}">{{ card.title }}</a></h3> | ||
<p class="fr-card__desc">{{ card.description }}</p> | ||
{% if card.announcement %} | ||
<div class="fr-card__start"> | ||
<div class="fr-card__start"> | ||
<ul class="fr-badges-group"> | ||
<li> | ||
<p class="fr-badge fr-badge--new">{{ card.announcement }}</p> | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
{% elif card.detail %} | ||
<p class="fr-card__detail">{{ card.detail }}</p> | ||
{% endif %} | ||
</div> | ||
</div> | ||
{% if card.image %} | ||
<div class="fr-card__header"> | ||
<div class="custom-card__img"> | ||
<img src="{{ card.image.src }}" alt="{{ card.image.alt }}"> | ||
</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
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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