-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eleventy.cjs
44 lines (36 loc) · 1006 Bytes
/
.eleventy.cjs
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
44
const highlight = require('@11ty/eleventy-plugin-syntaxhighlight');
const navigation = require('@11ty/eleventy-navigation')
const { EleventyRenderPlugin } = require("@11ty/eleventy");
const eleventy = require('@panoply/11ty')
const { Liquid } = require("liquidjs");
module.exports = eleventy(config =>{
config.addPairedLiquidShortcode('code', function (code) {
return `${code}`;
});
config.addPlugin(EleventyRenderPlugin);
config.addPlugin(navigation);
config.addPlugin(highlight, {
});
config.setBrowserSyncConfig({
notify: true
});
config.setLibrary('liquid', new Liquid({
extname: ".liquid",
dynamicPartials: true,
jekyllInclude: true,
root: ["./demo/views/"]
}))
return {
htmlTemplateEngine: 'liquid',
passthroughFileCopy: true,
dataTemplateEngine: 'liquid',
templateFormats: ['liquid', 'json'],
dir: {
input: "demo",
output: "docs",
includes: "views",
layouts: "",
data: "data",
},
};
});