]> git.zndr.dk Git - zndr-11ty.git/commitdiff
Add icon package
authorJannik ZANDER <jzander@grundfos.com>
Mon, 6 Oct 2025 14:15:26 +0000 (16:15 +0200)
committerJannik ZANDER <jzander@grundfos.com>
Mon, 6 Oct 2025 14:15:26 +0000 (16:15 +0200)
.eleventy.js

index bb2885c19d5e0afa8ac19b6444fb0919f0e63d58..a523432c7bf0fcb0a263031f775d55a934aeb3d3 100644 (file)
@@ -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",
   };
 };
+
+