Skip to content

Slug ​

Changes a string to a URL slug. The result is lowercase, and hyphens separate the words.

Example ​

liquid
{{ 'Summer Sale 2026!' | slug }}

Output

html
summer-sale-2026