Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions plugins/eleventy-bricks-plugin.md
Original file line number Diff line number Diff line change
@@ -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:* *<https://github.com/anydigital/eleventy-bricks#filters>*

**A living example:** <https://github.com/anydigital/sveleven>