-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheleventy.config.js
42 lines (38 loc) · 1.26 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
import { initWatchTargets } from "./config/watchTargets.js";
import { initPlugins } from "./config/plugins.js";
import { initFilters } from "./config/filters.js";
import { initGlobals } from "./config/globals.js";
import { initLayouts } from "./config/layouts.js";
import { initCollections } from "./config/collections.js";
import { initPassthroughs } from "./config/passthroughs.js";
import { initTransforms } from "./config/transforms.js";
import { initMarkdown } from "./config/markdown.js";
export default function (eleventyConfig) {
initWatchTargets(eleventyConfig);
initPlugins(eleventyConfig);
initFilters(eleventyConfig);
initGlobals(eleventyConfig);
initLayouts(eleventyConfig);
initCollections(eleventyConfig);
initPassthroughs(eleventyConfig);
initTransforms(eleventyConfig);
initMarkdown(eleventyConfig);
eleventyConfig.setLiquidOptions({
strictFilters: false,
dynamicPartials: false,
});
eleventyConfig.setDataDeepMerge(true);
return {
templateFormats: ["md", "njk", "html", "liquid"],
passthroughFileCopy: true,
markdownTemplateEngine: "liquid",
htmlTemplateEngine: "njk",
dataTemplateEngine: "njk",
dir: {
input: "src/site",
includes: "_includes",
data: "_data",
output: "_site",
},
};
}