import pluginWebc from "@11ty/eleventy-plugin-webc"; import { InputPathToUrlTransformPlugin, HtmlBasePlugin, RenderPlugin } from "@11ty/eleventy"; import { eleventyImageTransformPlugin } from "@11ty/eleventy-img"; import faviconsPlugin from "eleventy-plugin-gen-favicons"; import { feedPlugin } from "@11ty/eleventy-plugin-rss"; /** @param {import('@11ty/eleventy').UserConfig} eleventyConfig */ export function setupPlugins(eleventyConfig) { eleventyConfig.addPlugin(pluginWebc, { components: [ "./_components/**/*.webc", "npm:@11ty/is-land/*.webc" ] }); eleventyConfig.addPlugin(InputPathToUrlTransformPlugin); eleventyConfig.addPlugin(RenderPlugin); eleventyConfig.addPlugin(eleventyImageTransformPlugin, {}); eleventyConfig.addPlugin(HtmlBasePlugin); eleventyConfig.addPlugin(faviconsPlugin, {}); eleventyConfig.addPlugin(feedPlugin, { type: "atom", // or "rss", "json" outputPath: "/feed.xml", collection: { name: "post", // iterate over `collections.posts` limit: 0, // 0 means no limit }, metadata: { language: "en", title: "Jo's Blog", subtitle: "My blog about tech and life and stuff.", base: "https://j0.lol/", author: { name: "Jo Null", email: "", // Optional } } }); eleventyConfig.addPassthroughCopy({ "node_modules/@arborium/arborium/dist/themes": "arborium-themes" }); }