Skip to content

Commit

Permalink
Merge branch 'main' into production
Browse files Browse the repository at this point in the history
  • Loading branch information
bzg committed Nov 8, 2024
2 parents c6327c9 + b6e838f commit f590d54
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 1 deletion.
2 changes: 1 addition & 1 deletion _data/awesome.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const EleventyFetch = require("@11ty/eleventy-fetch");

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

let awesome = await EleventyFetch(URL, {
duration: "2w",
Expand Down
12 changes: 12 additions & 0 deletions _data/ospos.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
const EleventyFetch = require("@11ty/eleventy-fetch");

module.exports = async function () {
const URL = "https://code.gouv.fr/data/fr-ospos.json";

let ospos = await EleventyFetch(URL, {
duration: "2w",
type: "json"
});

return ospos;
};
29 changes: 29 additions & 0 deletions content/fr/ospos/index.njk
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
title: "OSPOs du secteur public"
description: La liste des Open Source Programme Offices du secteur public.
layout: layouts/page.njk
eleventyNavigation:
key: "OSPOs du secteur public"
parent: Ressources
order: 4
---

{% from "components/component.njk" import component with context %}
{{ component("callout", {
title: "Qu'est-ce qu'un OSPO ?",
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:[email protected]">sollicitez-nous pour être référencés</a>.' | safe
}) }}
<div class="fr-my-6w">
<div class="fr-grid-row fr-grid-row--gutters">
{% asyncAll ospo in ospos %}
<div class="fr-col-12 fr-col-md-3">
{{ component("card", {
url: false,
externalUrl: ospo.url,
title: ospo.name,
description: ospo.description
}) }}
</div>
{% endall %}
</div>
</div>

0 comments on commit f590d54

Please sign in to comment.