forked from tabler/tabler-icons
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eleventy.js
36 lines (29 loc) · 810 Bytes
/
.eleventy.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
const eleventySass = require("eleventy-sass");
module.exports = function (eleventyConfig) {
eleventyConfig.addPlugin(eleventySass);
eleventyConfig.addWatchTarget("./src");
eleventyConfig.addWatchTarget("./icons");
eleventyConfig.setQuietMode(true);
eleventyConfig.addLiquidTag("include_cached", function (liquidEngine) {
return {
parse: function (tagToken, remainingTokens) {
this.str = tagToken.args;
},
render: async function (scope, hash) {
var str = await this.liquid.evalValue(this.str, scope);
return str;
}
};
});
eleventyConfig.addFilter("group_by", function (value) {
return value
});
return {
pathPrefix: "/",
dir: {
input: "src",
layouts: "_layouts",
includes: "_includes"
},
};
};