Website version 6 v6.j0.lol
at trunk 44 lines 1.4 kB view raw
1import pluginWebc from "@11ty/eleventy-plugin-webc"; 2import { InputPathToUrlTransformPlugin, HtmlBasePlugin, RenderPlugin } from "@11ty/eleventy"; 3import { eleventyImageTransformPlugin } from "@11ty/eleventy-img"; 4import faviconsPlugin from "eleventy-plugin-gen-favicons"; 5import { feedPlugin } from "@11ty/eleventy-plugin-rss"; 6 7/** @param {import('@11ty/eleventy').UserConfig} eleventyConfig */ 8export function setupPlugins(eleventyConfig) { 9 eleventyConfig.addPlugin(pluginWebc, { 10 components: [ 11 "./_components/**/*.webc", 12 "npm:@11ty/is-land/*.webc" 13 ] 14 }); 15 16 eleventyConfig.addPlugin(InputPathToUrlTransformPlugin); 17 eleventyConfig.addPlugin(RenderPlugin); 18 eleventyConfig.addPlugin(eleventyImageTransformPlugin, {}); 19 eleventyConfig.addPlugin(HtmlBasePlugin); 20 eleventyConfig.addPlugin(faviconsPlugin, {}); 21 22 eleventyConfig.addPlugin(feedPlugin, { 23 type: "atom", // or "rss", "json" 24 outputPath: "/feed.xml", 25 collection: { 26 name: "post", // iterate over `collections.posts` 27 limit: 0, // 0 means no limit 28 }, 29 metadata: { 30 language: "en", 31 title: "Jo's Blog", 32 subtitle: "My blog about tech and stuff.", 33 base: "https://v6.j0.lol/", 34 author: { 35 name: "Jo Null", 36 email: "", // Optional 37 } 38 } 39 }); 40 41 eleventyConfig.addPassthroughCopy({ "node_modules/@arborium/arborium/dist/themes": "arborium-themes" }); 42 43 44}