Skip to content
Brought to you by Allons-y Studio
dashly A standard library of filters, transforms, & shortcodes for Eleventy

dashly: the standard library every Eleventy site ends up writing.

Date formatting, reading time, excerpts, RSS-safe HTML, URL handling, locale-aware numbers, & more: bundled into one tree-shakeable package, registered with one plugin line.

npm install --save-dev @allons-y/dashly

Usage

// eleventy.config.js
import dashly from "@allons-y/dashly";

export default function (config) {
	config.addPlugin(dashly, { baseUrl: "https://example.com" });
}

Features

What's included

Three kinds of utility, each grouped into modules you can import on their own. The count is how many utilities of that kind you get: every filter, transform, & shortcode is one.

Kind Modules Utilities
Filters arrays, dates, debug, html, numbers, objects, strings, tags, text, urls 38
Transforms clean-attrs, htmlmin, postcss, prettier 4
Shortcodes year 1

Documentation

Getting started
Install dashly, register the plugin, & use your first filter.
How it works
What the plugin registers, how options reach each utility, & how optional peers load.
Configuration
Every plugin option, its default, & what it affects.
Filters
Filters are plain functions registered with addFilter, so they work in Nunjucks, Liquid, & 11ty.js (JavaScript) templates.
Transforms
Transforms process built output.
Shortcodes
Shortcodes are registered with addShortcode & called as {% name %} in templates.
Use only what you need
Register single utilities by hand or import from the narrowest subpath.
Format & minify output
Run Prettier & HTML minification, & control when each runs.
Metadata, feeds, & absolute URLs
Canonical tags, JSON-LD dates, & RSS-safe content.

Allons-y Studio

Let's build something great together

A front-end & design systems studio helping teams ship consistent, accessible UI faster.