leilukin-site/eleventy.config.js

26 lines
822 B
JavaScript
Raw Normal View History

2024-04-11 12:16:05 +00:00
// Installed Plug-ins
2024-04-11 15:32:47 +00:00
const { EleventyRenderPlugin } = require("@11ty/eleventy");
2024-04-11 12:16:05 +00:00
const pluginWebc = require("@11ty/eleventy-plugin-webc");
2024-04-11 12:18:03 +00:00
const pluginRss = require("@11ty/eleventy-plugin-rss");
2024-04-11 12:17:11 +00:00
const metagen = require('eleventy-plugin-metagen');
2024-04-11 12:16:05 +00:00
module.exports = function (eleventyConfig) {
2024-04-11 12:16:05 +00:00
// Copy files
eleventyConfig.addPassthroughCopy("./src/assets/");
eleventyConfig.addWatchTarget("./src/assets/");
eleventyConfig.addPassthroughCopy({ "./src/assets/feed/": "/" });
2024-04-11 12:16:05 +00:00
// Installed Plug-ins
2024-04-11 15:32:47 +00:00
eleventyConfig.addPlugin(EleventyRenderPlugin);
2024-04-11 15:34:28 +00:00
eleventyConfig.addPlugin(pluginWebc, {
components: "./src/_includes/**/*.webc",
});
2024-04-11 12:18:03 +00:00
eleventyConfig.addPlugin(pluginRss);
2024-04-11 12:17:11 +00:00
eleventyConfig.addPlugin(metagen);
2024-04-11 12:16:05 +00:00
return {
dir: {
input: "src"
}
};
};