From dd56cefc8d4ce9459151d2bb6e00dccf050bc76a Mon Sep 17 00:00:00 2001 From: Nicolas Merget Date: Fri, 15 Nov 2024 15:33:32 +0100 Subject: [PATCH] fix: issue with generated icon preview --- src/generate-icon-fonts/svg-to-font.ts | 2 +- src/generate-icon-fonts/templates/index.njk | 35 +++++++++++++++++++++ 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 src/generate-icon-fonts/templates/index.njk diff --git a/src/generate-icon-fonts/svg-to-font.ts b/src/generate-icon-fonts/svg-to-font.ts index f715d0a..eb813ca 100644 --- a/src/generate-icon-fonts/svg-to-font.ts +++ b/src/generate-icon-fonts/svg-to-font.ts @@ -41,7 +41,7 @@ const svgToFont = async ( }, website: { index: "font-class", - template: path.resolve(generateIconFontsDir, "templates/template.ejs"), + template: path.resolve(generateIconFontsDir, "templates/index.njk"), links: [{ title: "", url: "" }], }, styleTemplates: path.resolve(generateIconFontsDir, "styles"), diff --git a/src/generate-icon-fonts/templates/index.njk b/src/generate-icon-fonts/templates/index.njk new file mode 100644 index 0000000..ebe5d19 --- /dev/null +++ b/src/generate-icon-fonts/templates/index.njk @@ -0,0 +1,35 @@ + + + + + {{ _title }} + + + + + + + +
+ +
+ + + \ No newline at end of file