-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eleventy.js
33 lines (27 loc) · 970 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
const eleventyNavigationPlugin = require("@11ty/eleventy-navigation");
const pluginTOC = require('eleventy-plugin-toc')
const markdownIt = require('markdown-it')
const markdownItAnchor = require('markdown-it-anchor')
module.exports = function(eleventyConfig) {
// Do NOT erase the two lines below...
eleventyConfig.addPassthroughCopy("./static/images");
eleventyConfig.addPassthroughCopy("./**./**/*.{jpg,png,svg,ico}");
eleventyConfig.addPassthroughCopy("./dist/output.css");
eleventyConfig.addPlugin(eleventyNavigationPlugin);
eleventyConfig.addPlugin(pluginTOC)
eleventyConfig.setLibrary(
'md',
markdownIt().use(markdownItAnchor)
)
return {
markdownTemplateEngine: "njk",
htmlTemplateEngine: "njk",
dir: {
// default: [site root]
input: "static",
// default: _site
includes: "_includes",
output: "_site",
},
};
};