aboutsummaryrefslogtreecommitdiff
path: root/.eleventy.js
diff options
context:
space:
mode:
Diffstat (limited to '.eleventy.js')
-rw-r--r--.eleventy.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/.eleventy.js b/.eleventy.js
index 0024463e..b9f82634 100644
--- a/.eleventy.js
+++ b/.eleventy.js
@@ -47,6 +47,16 @@ 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) => {
return b.name - a.name