diff options
author | codecalm <codecalm@gmail.com> | 2022-08-18 13:59:03 +0200 |
---|---|---|
committer | codecalm <codecalm@gmail.com> | 2022-08-18 13:59:03 +0200 |
commit | 7ee6ac51c0a003b46307d6ec92ef9d4432a16590 (patch) | |
tree | 0d5aa4ac20693991d273f4115dbb37aef1e5631c /.eleventy.js | |
parent | `tags.json` build (diff) | |
download | tabler-icons-7ee6ac51c0a003b46307d6ec92ef9d4432a16590.tar.xz |
e11ty testdev-e11ty
Diffstat (limited to '.eleventy.js')
-rw-r--r-- | .eleventy.js | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/.eleventy.js b/.eleventy.js index b9f82634..d5f7c388 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -32,10 +32,11 @@ module.exports = function(eleventyConfig) { eleventyConfig.addExtension("svg", { outputFileExtension: 'svg', compileOptions: { - permalink: function(contents, inputPath) { - const basename = path.basename(inputPath); - return `icons/${basename}`; - } + permalink: false + // permalink: function(contents, inputPath) { + // const basename = path.basename(inputPath); + // return `icons/${basename}`; + // } }, compile: async (inputContent, inputPath) => { @@ -47,15 +48,6 @@ module.exports = function(eleventyConfig) { } }); - eleventyConfig.addTemplateFormats("json"); - eleventyConfig.addExtension("json", { - outputFileExtension: 'json', - compile: async function(inputContent) { - return async () => { - return inputContent; - }; - } - }); eleventyConfig.addCollection('icons', collection => { return collection.getFilteredByGlob('./src/icons/*.svg').sort((a, b) => { |