-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eleventy.js
35 lines (28 loc) · 946 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
32
33
34
35
const markdownIt = require("markdown-it");
const markdownItAttrs = require("markdown-it-attrs");
const filters = require('./utils/filters.js');
module.exports = function (eleventyConfig) {
// Filters & Shortcodes
filters(eleventyConfig);
// shortcodes(eleventyConfig);
// Eleventy
eleventyConfig.addPassthroughCopy('src/assets/styles/*.css');
eleventyConfig.addPassthroughCopy('src/assets/img');
eleventyConfig.addPassthroughCopy('src/favicon.ico');
eleventyConfig.addPassthroughCopy('src/site.webmanifest');
eleventyConfig.setDataDeepMerge(true);
const markdownLib = markdownIt({ html: true }).use(markdownItAttrs);
eleventyConfig.setLibrary("md", markdownLib);
return {
passthroughFileCopy: true,
htmlTemplateEngine: "njk",
markdownTemplateEngine: "njk",
dir: {
input: 'src',
includes: '_includes',
layouts: '_layouts',
data: '_data',
output: '_site',
}
}
}