yuki.k4w411.net/eleventy.config.js
2025-10-11 09:04:20 -03:00

18 lines
No EOL
599 B
JavaScript

const eleventySass = require("eleventy-sass");
const toml = require("@iarna/toml");
module.exports = function(eleventyConfig) {
eleventyConfig.setLayoutsDirectory("_layouts");
eleventyConfig.addPassthroughCopy("img");
eleventyConfig.addPassthroughCopy("css/fonts");
eleventyConfig.addPassthroughCopy("js");
eleventyConfig.addPassthroughCopy("LICENSE.txt");
eleventyConfig.addPlugin(eleventySass);
eleventyConfig.addDataExtension("toml", (contents) => toml.parse(contents));
return {
markdownTemplateEngine: "njk",
htmlTemplateEngine: "njk"
}
};