Menu
- Why Eleventy?
 - Get Started
 - Community
 - Working with Templates
 - Using Data
 - Configuration
 - Template Languages
 - Plugins
 - API Services
 - Release History
 - Advanced
 
Eleventy 
			
			1.93sAstro 
			22.90sslug Universal Filter
WARNING:
Starting in Eleventy v1.0.0 it is recommended to use the 
slugify Universal Filter instead of slug. For backwards compatibility, slug is still included and supported but slugify has better default behavior for URLs with special characters. If you want to swap slug to slugify wholesale in old projects, please read this warning about breaking URLs. Be careful!Uses the slugify npm package to convert a string into a URL slug. Can be used in pagination or permalinks.
Filename slug.md
---
title: "My Title"
permalink: "/{{ title | slugify }}/"
---
Outputs to `/my-title/`.
