Files
rainbowcroissant/eleventy.config.cjs
kevinnls ac4e71106b install some stuff for 11ty
markdown attributes
configure eleventy renderFile plugin
2023-10-12 22:35:08 +05:30

20 lines
470 B
JavaScript

const { EleventyHtmlBasePlugin, EleventyRenderPlugin } = require("@11ty/eleventy");
const markdownItAttrs = require("markdown-it-attrs");
module.exports = function(eleventyConfig){
eleventyConfig.addPlugin(EleventyHtmlBasePlugin);
eleventyConfig.addPlugin(EleventyRenderPlugin);
eleventyConfig.amendLibrary("md", mdLib => mdLib.use(markdownItAttrs));
eleventyConfig.addPassthroughCopy("static");
return {
pathPrefix: "/",
dir: {
input: "src",
},
}
}