nexy7574.co.uk-b/ssg/.eleventy.js
2024-06-18 02:11:20 +01:00

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"
}
};
//
};