Skip to content

Commit

Permalink
feat: add article for 2022
Browse files Browse the repository at this point in the history
  • Loading branch information
EmmanuelDemey committed Oct 12, 2024
1 parent 61cf4cf commit 626796a
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 24 deletions.
22 changes: 9 additions & 13 deletions .eleventy.js
Original file line number Diff line number Diff line change
@@ -1,26 +1,22 @@
import htmlmin from "html-minifier";
import fetch from "node-fetch";
import config from "./data/config.js";
import lightningCSS from "@11tyrocks/eleventy-plugin-lightningcss";
import { markdown as md } from "markdown";
import { getExtensionFromLogoUrl, fetchImage } from "./.11ty/image.js";
import {
createTalksCollections,
createTalksCollectionsBydate,
createFlatTalksCollections,
} from "./.11ty/talks.js";
import fetch from "node-fetch";
import { minify } from "terser";
import config from "./data/config.js";
import press from "./data/press.js";

export default function (eleventyConfig) {
// eleventyConfig.addCollection("talks", createTalksCollections);
// eleventyConfig.addCollection("flatTalks", createFlatTalksCollections);
// eleventyConfig.addCollection("talksByDate", createTalksCollectionsBydate);

eleventyConfig.addCollection("press", async () => {
return Object.values(press).flat();
});
eleventyConfig.addCollection("faqs", async () => {
try {
const data = await fetch(config.cms4partnersApi + config.edition + "").then((res) =>
res.json()
);
const data = await fetch(
config.cms4partnersApi + config.edition + ""
).then((res) => res.json());
const qanda = data.qanda
.sort((f1, f2) => f1.order - f2.order)
.map((q) => {
Expand Down
37 changes: 37 additions & 0 deletions data/press.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
export default {
2023: [
{
title: "DevFest Lille 2023 : une conférence dans l’ère du temps !",
url: "https://www.sfeir.dev/tendances/un-devops-au-devfest-lille-2023/",
publishedAt: "26 mai 2023",
publishedBy: "Sfeir",
},
{
title: "Réduire l’impact environnemental du Devfest Lille",
url: "https://welovedevs.com/fr/articles/reduire-limpact-environnemental-du-devfest-lille/",
publishedAt: "19 avril 2023",
publishedBy: "WeLoveDevs",
},
],
2022: [
{
title: "Retour sur DevFest Lille 2022",
url: "https://www.dnd.fr/retour-sur-devfest-lille-2022/",
publishedAt: "05 juillet 2022",
publishedBy: "Sfeir",
},

{
title: "DevFest Lille 2022: our insights",
url: "https://medium.com/adeo-tech/devfest-lille-2022-8a9104ef020a",
publishedAt: "20 juin 2022",
publishedBy: "Adeo",
},
{
title: "[REX] DevFest Lille 2022 🍻",
url: "https://maximepawlak.medium.com/rex-devfest-lille-2022-9814f45eea52",
publishedAt: "13 juin 2022",
publishedBy: "DN'D",
},
],
};
16 changes: 5 additions & 11 deletions press.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,15 @@

<article class="page-body">
<h2>On parle de nous</h2>

<dl class="press">
{%- for p in collections.press -%}
<div>
<dt>
<a href="https://www.sfeir.dev/tendances/un-devops-au-devfest-lille-2023/">
DevFest Lille 2023 : une conférence dans l’ère du temps !</a>
</dt>
<dd>Publié sur Sfeir.dev le 26 mai 2023</dd>
</div>
<div>
<dt>
<a href="https://welovedevs.com/fr/articles/reduire-limpact-environnemental-du-devfest-lille/">
Réduire l’impact environnemental du Devfest Lille</a>
<a href="{{p.url}}"> {{p.title }}</a>
</dt>
<dd>Publié sur WeLoveDevs le 19 avril 2023</dd>
<dd>Publié sur {{p.publishedBy}} le {{p.publishedAt}}</dd>
</div>
{%- endfor -%}
</dl>
</article>

0 comments on commit 626796a

Please sign in to comment.