diff --git a/plugins/eleventy-bricks-plugin.md b/plugins/eleventy-bricks-plugin.md new file mode 100644 index 0000000..8189fea --- /dev/null +++ b/plugins/eleventy-bricks-plugin.md @@ -0,0 +1,39 @@ +--- +layout: /plugin.njk +title: Eleventy Bricks [Plugin] +readmeUrl: https://raw.githubusercontent.com/anydigital/eleventy-bricks/refs/heads/main/README.md +categories: + - universal + - markdown + - utility +maintainer: + name: Anydigital + url: https://any.digital/ +githubUrl: https://github.com/anydigital/eleventy-bricks +description: A modular toolkit offering automatically injected favicons for + links, set of universal filters, Markdown processors, and predefined 11ty + config with reusable npm scripts. Its unique "symlink-first" approach + streamlines 11ty development by managing all essential dependencies through a + single, maintainable package, also powering Sveleven starter. +--- +A collection of helpful utilities and filters for Eleventy (11ty) including: + +**⚡️ Zero-Config-ish Experience**: You can symlink a pre-configured `eleventy.config.js`  to get best-practice defaults (Markdown-it anchors, YAML support, TOC, etc.) or just use it as a standard plugin. + +**🛠 Reusable Build Workflows**: Includes a `do`  folder setup via npm workspaces. This keeps your build/stage/start scripts separate from your project config and easily updatable via the package. + +**✍️ Markup Power-ups**: + +* `autoLinkFavicons` : My personal favorite—automatically adds site icons to plain URL links, making resource lists look premium instantly. +* `mdAutoRawTags` : Automatically wraps Nunjucks/Liquid syntax in `{% raw %}`  so you can write documentation about templating without everything breaking. +* `mdAutoNl2br` : Finally adds support for line breaks in Markdown tables using `\n`  sequences. + +**🧩 Smart Template Filters**: + +* `fetch` : A unified filter to grab content from remote URLs (with automatic caching via u/11ty`/eleventy-fetch` ) or local files. +* `section` : It lets you split a single Markdown file into named sections (using HTML comments) so you can pull specific parts into different areas of your layout. +* `attr_set`  & `attr_concat` : Easily manipulate objects and arrays inside `.njk`  or `.liquid`  templates without needing custom shortcodes. +* `merge` : A clean way to combine configuration objects or arrays directly in your templates. +* *and more:* ** + +**A living example:** \ No newline at end of file