-
Notifications
You must be signed in to change notification settings - Fork 6
/
.eleventy.js
28 lines (24 loc) · 915 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
const syntaxHighlight = require("@11ty/eleventy-plugin-syntaxhighlight");
module.exports = function(eleventyConfig) {
eleventyConfig.addLayoutAlias('base', 'layouts/base.njk');
eleventyConfig.addPlugin(syntaxHighlight, {
alwaysWrapLineHighlights: false,
trim: true,
});
eleventyConfig.setUseGitIgnore(false);
eleventyConfig.addWatchTarget("./.tmp/css/style.css");
eleventyConfig.addPassthroughCopy({ "./.tmp/css/style.css": "static/css/style.css" });
eleventyConfig.addPassthroughCopy({ "./src/site/_includes/img": "static/img" });
eleventyConfig.addPassthroughCopy({ "./src/site/robots.txt": "robots.txt" });
return {
dir: {
input: "src/site",
includes: "_includes",
output: "dist"
},
passthroughFileCopy: true,
templateFormats : ["njk", "md", "ico", "png", "webmanifest"],
htmlTemplateEngine : "njk",
markdownTemplateEngine : "njk",
};
};