-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eleventy.js
29 lines (26 loc) · 894 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
module.exports = function(eleventyConfig) {
// register these for copying content across
// if we used a pipeline tool, like webpack, we wouldn't use these (I think)
eleventyConfig.addPassthroughCopy("src/js");
eleventyConfig.addPassthroughCopy("src/img");
eleventyConfig.addPassthroughCopy("src/css");
return {
templateFormats: [
"md",
"njk",
],
// If your site lives in a different subdirectory, change this.
// Leading or trailing slashes are all normalized away, so don’t worry about it.
// If you don’t have a subdirectory, use "" or "/" (they do the same thing)
// This is only used for URLs (it does not affect your file structure)
pathPrefix: "/",
htmlTemplateEngine: "njk",
passthroughFileCopy: true,
dir: {
input: "src",
includes: "_includes",
data: "_data",
output: "_site"
}
};
};