-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eleventy.js
29 lines (25 loc) · 925 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
const syntaxHighlight = require("@11ty/eleventy-plugin-syntaxhighlight");
const eleventyNavigationPlugin = require("@11ty/eleventy-navigation");
const tableOfContentsPlugin = require("eleventy-plugin-nesting-toc");
const markdownIt = require("markdown-it");
const markdownItAnchor = require("markdown-it-anchor");
module.exports = function (eleventyConfig) {
eleventyConfig.addWatchTarget("./src/sass/");
eleventyConfig.addPassthroughCopy("./src/css");
eleventyConfig.addPassthroughCopy("./src/images");
eleventyConfig.addPassthroughCopy("./src/audio");
eleventyConfig.addPlugin(syntaxHighlight);
eleventyConfig.addPlugin(eleventyNavigationPlugin);
eleventyConfig.addPlugin(tableOfContentsPlugin);
eleventyConfig.setLibrary(
"md",
markdownIt({ html: true }
).use(markdownItAnchor));
return {
passThroughFileCopy: true,
dir: {
input: "src",
output: "public",
},
};
};