From: Jannik ZANDER Date: Mon, 6 Oct 2025 14:15:26 +0000 (+0200) Subject: Add icon package X-Git-Url: https://git.zndr.dk/?a=commitdiff_plain;h=045ec0995ee9203a95aedeef732cf6a79dd16c88;p=zndr-11ty.git Add icon package --- diff --git a/.eleventy.js b/.eleventy.js index bb2885c..a523432 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -1,5 +1,6 @@ // .eleventy.js const { DateTime } = require("luxon"); +const eleventyLucideIcons = require("@grimlink/eleventy-plugin-lucide-icons"); const DEFAULT_LOCALE = "en-GB"; // English month names with day comes first const DEFAULT_DISPLAY = "DATE_FULL"; // 11 September 2025 @@ -25,9 +26,18 @@ module.exports = function(eleventyConfig) { .toLocaleString(DateTime[DEFAULT_DISPLAY]); }); + // Lucide icons plugin + eleventyConfig.addPlugin(eleventyLucideIcons, { + size: 24, + strokeWidth: 2, + class: "icon", + }); + return { dir: { input: "site", includes: "_includes", data: "_data", output: "dist" }, htmlTemplateEngine: "njk", markdownTemplateEngine: "njk", }; }; + +