-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eleventy.js
29 lines (25 loc) · 933 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
// 11ty configuration
module.exports = function(config) {
// avoid ignoring generated files such as css
config.setUseGitIgnore(false);
config.addPassthroughCopy('./src/css/');
config.addPassthroughCopy('./src/js/');
config.addPassthroughCopy('./src/images/');
// Add the navigation plugin
config.addPlugin( require('@11ty/eleventy-navigation') );
// We want the attrs and bracketed-spans extensions
let markdownIt = require("markdown-it");
config.setLibrary("md",
markdownIt({ html: true })
.use(require("markdown-it-attrs"))
.use(require('markdown-it-div'))
.use(require("markdown-it-bracketed-spans")));
return {
markdownTemplateEngine: "njk",
htmlTemplateEngine: "njk",
dir: {
input: 'src'
//output: 'docs' // default: _site
}
};
};