-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eleventy.js
31 lines (26 loc) · 860 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
const syntaxHighlight = require("@11ty/eleventy-plugin-syntaxhighlight");
const pluginRss = require("@11ty/eleventy-plugin-rss");
const embedYouTube = require("eleventy-plugin-youtube-embed");
module.exports = eleventyConfig => {
eleventyConfig.addPlugin(syntaxHighlight);
eleventyConfig.addPassthroughCopy("img");
eleventyConfig.addPassthroughCopy(".well-known");
eleventyConfig.addPlugin(pluginRss);
eleventyConfig.addPlugin(embedYouTube);
let markdownIt = require("markdown-it");
let markdownFootnotes = require('markdown-it-footnote')
let options = {
html: true
};
let markdownLib = markdownIt(options).use(markdownFootnotes);
eleventyConfig.setLibrary("md", markdownLib);
return {
//Use ejs in html templates
htmlTemplateEngine: "liquid",
templateFormats: [
"html",
"md",
"njk"
]
};
};