-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eleventy.js
31 lines (26 loc) · 984 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
const config = require('./11ty/config');
const { registerFilters } = require('./11ty/filters');
const { registerPlugins } = require('./11ty/plugins');
const { registerShortcodes } = require('./11ty/shortcodes');
const { registerCollections } = require('./11ty/collections');
const TEMPLATE_ENGINE = 'liquid';
const { dir } = config;
module.exports = (eleventyConfig) => {
eleventyConfig.setLiquidOptions({
dynamicPartials: true, // false by default in 11ty
});
// eleventyConfig.addWatchTarget(imagePaths.input);
eleventyConfig.addWatchTarget('./src/styles/');
eleventyConfig.addPassthroughCopy('src/images');
registerPlugins(eleventyConfig);
registerFilters(eleventyConfig);
registerShortcodes(eleventyConfig);
registerCollections(eleventyConfig);
return {
markdownTemplateEngine: TEMPLATE_ENGINE,
dataTemplateEngine: TEMPLATE_ENGINE,
htmlTemplateEngine: TEMPLATE_ENGINE,
templateFormats: ['html', 'md', TEMPLATE_ENGINE],
dir,
}
};