-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy patheleventy.config.js
43 lines (36 loc) · 1.16 KB
/
eleventy.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
const UpgradeHelper = require("@11ty/eleventy-upgrade-help");
// const {EleventyRenderPlugin, EleventyI18nPlugin, EleventyHtmlBasePlugin} = require("@11ty/eleventy");
// console.log( EleventyRenderPlugin, EleventyI18nPlugin, EleventyHtmlBasePlugin );
module.exports = async function(eleventyConfig) {
// const {EleventyRenderPlugin, EleventyI18nPlugin, EleventyHtmlBasePlugin} = await import("@11ty/eleventy");
// Removed Plugins
// const { EleventyServerlessBundlerPlugin, EleventyEdgePlugin } = await import("@11ty/eleventy");
// eleventyConfig.addPlugin(EleventyServerlessBundlerPlugin);
// eleventyConfig.addPlugin(EleventyEdgePlugin);
// Aliases
// eleventyConfig.addExtension("markdown", {
// key: "md"
// })
// Removed template syntaxes
eleventyConfig.addExtension("pug", {
compile: () => {},
compileOptions: {
permalink: "raw"
}
})
// This needs to be the last plugin
eleventyConfig.addPlugin(UpgradeHelper);
return {
// templateFormats: "md,markdown",
// dir: {
// input: ".",
// output: ".",
// },
// htmlOutputSuffix: "-o"
}
};
module.exports.config = {
dir: {
input: "src"
}
}