From 0532d57efb3490b03bec7f621f6c92185fc75ca4 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Thu, 1 May 2025 19:24:18 +0200 Subject: [PATCH] Add simple-icons to handle brand logos --- eleventy.config.js | 5 ++++- package-lock.json | 16 +++++++++++++++- package.json | 3 ++- src/_data/author.json | 2 +- src/projects/cancre-simulator.md | 2 +- src/projects/guess-who.md | 2 +- src/projects/ldap.md | 2 +- src/projects/sigfox.md | 2 +- src/projects/snake.md | 2 +- 9 files changed, 27 insertions(+), 9 deletions(-) diff --git a/eleventy.config.js b/eleventy.config.js index 46e0f18..ebec170 100644 --- a/eleventy.config.js +++ b/eleventy.config.js @@ -30,7 +30,10 @@ export default async function (eleventyConfig) { eleventyConfig.addPlugin(eleventyPDF); eleventyConfig.addPlugin(pluginIcons, { - sources: [{ name: 'lucide', path: 'node_modules/lucide-static/icons', default: true }] + sources: [ + { name: 'lucide', path: 'node_modules/lucide-static/icons', default: true }, + { name: 'simple-icons', path: 'node_modules/simple-icons/icons', default: false } + ] }); eleventyConfig.addBundle("css"); diff --git a/package-lock.json b/package-lock.json index 7e212cb..b44ca95 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,7 +13,8 @@ "eleventy-plugin-icons": "^4.5.3", "lucide-static": "^0.503.0", "nanoid": "^5.1.5", - "puppeteer-html-pdf": "^4.0.8" + "puppeteer-html-pdf": "^4.0.8", + "simple-icons": "^14.12.3" } }, "node_modules/@11ty/dependency-tree": { @@ -2996,6 +2997,19 @@ "node": ">=8" } }, + "node_modules/simple-icons": { + "version": "14.12.3", + "resolved": "https://registry.npmjs.org/simple-icons/-/simple-icons-14.12.3.tgz", + "integrity": "sha512-P85Pqak4picfTzdujmGL7+pFfsd32K/tDjHPQ8vvJcr2Xk380A9kBVIW5QH86qWqa+YJgFa5huLcUuwmW+YBPQ==", + "dev": true, + "engines": { + "node": ">=0.12.18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/simple-icons" + } + }, "node_modules/slash": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/slash/-/slash-1.0.0.tgz", diff --git a/package.json b/package.json index 9dec3de..a134c92 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,7 @@ "eleventy-plugin-icons": "^4.5.3", "lucide-static": "^0.503.0", "nanoid": "^5.1.5", - "puppeteer-html-pdf": "^4.0.8" + "puppeteer-html-pdf": "^4.0.8", + "simple-icons": "^14.12.3" } } diff --git a/src/_data/author.json b/src/_data/author.json index 82f6dc7..4089a04 100644 --- a/src/_data/author.json +++ b/src/_data/author.json @@ -22,7 +22,7 @@ "socials": [ { "title": "Mon Github", - "icon": "github", + "icon": "simple-icons:github", "link": "https://github.com/TheThomaas" } ] diff --git a/src/projects/cancre-simulator.md b/src/projects/cancre-simulator.md index 041dce6..6fe8ab4 100644 --- a/src/projects/cancre-simulator.md +++ b/src/projects/cancre-simulator.md @@ -4,5 +4,5 @@ description: Un jeu fait pour les Portes Ouvertes 2020 links: - title: Voir sur Github link: https://github.com - icon: github + icon: simple-icons:github --- \ No newline at end of file diff --git a/src/projects/guess-who.md b/src/projects/guess-who.md index f021f01..b1f27a2 100644 --- a/src/projects/guess-who.md +++ b/src/projects/guess-who.md @@ -4,5 +4,5 @@ description: Un "Qui est-ce ?" fait en Python et avec des LEGO Mindstorms links: - title: Voir sur Github link: https://github.com - icon: github + icon: simple-icons:github --- \ No newline at end of file diff --git a/src/projects/ldap.md b/src/projects/ldap.md index f4162f9..d41ab7b 100644 --- a/src/projects/ldap.md +++ b/src/projects/ldap.md @@ -7,5 +7,5 @@ links: icon: link - title: Voir sur Github link: https://github.com - icon: github + icon: simple-icons:github --- \ No newline at end of file diff --git a/src/projects/sigfox.md b/src/projects/sigfox.md index 053af21..a722878 100644 --- a/src/projects/sigfox.md +++ b/src/projects/sigfox.md @@ -7,5 +7,5 @@ links: icon: link - title: Voir sur Github link: https://github.com - icon: github + icon: simple-icons:github --- \ No newline at end of file diff --git a/src/projects/snake.md b/src/projects/snake.md index bdda1ea..c35fcdd 100644 --- a/src/projects/snake.md +++ b/src/projects/snake.md @@ -5,5 +5,5 @@ background: rgb(255, 143, 143) links: - title: Voir sur Github link: https://github.com - icon: github + icon: simple-icons:github --- \ No newline at end of file