11ty

Eleventy Documentation

This documentation is for an older version. Go to the newest Eleventy docs or check out the full release history.

Documentation Pages

slug Universal Filter #

Uses the slugify npm package to convert a string into a URL slug. Can be used in pagination or permalinks.

{{ "My Title" | slug }} -> `my-title`