31 lines
No EOL
840 B
JavaScript
31 lines
No EOL
840 B
JavaScript
// const { eleventyImageTransformPlugin } = require("@11ty/eleventy-img");
|
|
const markdownIt = require("markdown-it");
|
|
|
|
|
|
module.exports = function (eleventyConfig) {
|
|
eleventyConfig.setLiquidOptions({
|
|
jsTruthy: true,
|
|
});
|
|
// eleventyConfig.addPassthroughCopy("img");
|
|
// eleventyConfig.addPassthroughCopy("assets");
|
|
// eleventyConfig.addPassthroughCopy("js");
|
|
eleventyConfig.addPassthroughCopy("src/css");
|
|
eleventyConfig.addPassthroughCopy("src/img");
|
|
eleventyConfig.addPassthroughCopy("src/assets");
|
|
let options = {
|
|
html: true,
|
|
breaks: true,
|
|
linkify: true,
|
|
};
|
|
|
|
eleventyConfig.setLibrary("md", markdownIt(options));
|
|
return {
|
|
dir: {
|
|
input: "src",
|
|
// data: "_assets",
|
|
// includes: "_includes",
|
|
// layouts: "_layouts"
|
|
}
|
|
};
|
|
//
|
|
}; |