-
Notifications
You must be signed in to change notification settings - Fork 10
/
.eleventy.js
30 lines (25 loc) · 854 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
const syntaxHighlight = require("@11ty/eleventy-plugin-syntaxhighlight");
const embedYouTube = require("eleventy-plugin-youtube-embed");
module.exports = function (eleventyConfig) {
eleventyConfig.ignores.add("./src/_sass");
eleventyConfig.ignores.add("./src/_scripts");
eleventyConfig.addWatchTarget("./src/css");
eleventyConfig.addPassthroughCopy({ "./src/_css/": "/css/" });
eleventyConfig.addPassthroughCopy({ "./src/_public": "/" });
eleventyConfig.addPassthroughCopy({
"./src/_client_scripts/app_search.js": "/js/app_search.js",
});
eleventyConfig.addPlugin(syntaxHighlight);
eleventyConfig.addPlugin(embedYouTube, {
lite: true,
});
eleventyConfig.ignores.add("./src/_archive");
return {
dir: {
data: "_data",
input: "src",
includes: "_includes",
layouts: "_layouts",
},
};
};