Skip to content

Commit f590d54

Browse files
committed
Merge branch 'main' into production
2 parents c6327c9 + b6e838f commit f590d54

File tree

3 files changed

+42
-1
lines changed

3 files changed

+42
-1
lines changed

_data/awesome.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const EleventyFetch = require("@11ty/eleventy-fetch");
22

33
module.exports = async function () {
4-
const URL = "https://code.gouv.fr/data/awesome-codegouvfr.json";
4+
const URL = "https://code.gouv.fr/data/awesome.json";
55

66
let awesome = await EleventyFetch(URL, {
77
duration: "2w",

_data/ospos.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
const EleventyFetch = require("@11ty/eleventy-fetch");
2+
3+
module.exports = async function () {
4+
const URL = "https://code.gouv.fr/data/fr-ospos.json";
5+
6+
let ospos = await EleventyFetch(URL, {
7+
duration: "2w",
8+
type: "json"
9+
});
10+
11+
return ospos;
12+
};

content/fr/ospos/index.njk

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
title: "OSPOs du secteur public"
3+
description: La liste des Open Source Programme Offices du secteur public.
4+
layout: layouts/page.njk
5+
eleventyNavigation:
6+
key: "OSPOs du secteur public"
7+
parent: Ressources
8+
order: 4
9+
---
10+
11+
{% from "components/component.njk" import component with context %}
12+
{{ component("callout", {
13+
title: "Qu'est-ce qu'un OSPO ?",
14+
description: 'Consultez la <a class="fr-link fr-text--lead" href="https://code.gouv.fr/fr/blog/definition-ospo/" target="_blank">proposition de définition d\'un OSPO</a> et <a class="fr-link fr-text--lead" href="mailto:contact@code.gouv.fr">sollicitez-nous pour être référencés</a>.' | safe
15+
}) }}
16+
<div class="fr-my-6w">
17+
<div class="fr-grid-row fr-grid-row--gutters">
18+
{% asyncAll ospo in ospos %}
19+
<div class="fr-col-12 fr-col-md-3">
20+
{{ component("card", {
21+
url: false,
22+
externalUrl: ospo.url,
23+
title: ospo.name,
24+
description: ospo.description
25+
}) }}
26+
</div>
27+
{% endall %}
28+
</div>
29+
</div>

0 commit comments

Comments
 (0)