aboutsummaryrefslogtreecommitdiff
path: root/.eleventy.js
diff options
context:
space:
mode:
Diffstat (limited to '.eleventy.js')
-rw-r--r--.eleventy.js18
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) => {