-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eleventy.js
47 lines (40 loc) · 844 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
36
37
38
39
40
41
42
43
44
45
46
47
const markdownIt = require('markdown-it');
const markdownItAnchor = require('markdown-it-anchor');
module.exports = function(eleventyConfig) {
eleventyConfig.addPassthroughCopy('src/.well-known');
const markdownOptions = markdownIt({
html: true,
typographer: true
}).use(markdownItAnchor, {
level: 2,
permalink: true,
permalinkClass: 'permalink',
permalinkSymbol: '<span role="img" aria-hidden="true" aria-label="permalink">🖇</span>',
});
eleventyConfig.setLibrary('md', markdownOptions);
eleventyConfig.addPassthroughCopy('src/_headers');
return {
dir: {
input: 'src',
output: '_site'
},
templateFormats: [
"md",
"html",
"css",
"jpg",
"png",
"gif",
"webp",
"avif",
"ico",
"svg",
"njk",
"ttf",
"otf",
"woff",
"woff2",
],
passthroughFileCopy: true,
}
}