slugify
Convert strings into clean, SEO-friendly URL slugs using Unicode NFC normalization and hyphenation.
Syntax
{{ string | slugify }}Example
{% assign title = "Austin & Round Rock Roofing!" %}{{ title | slugify }}Output
austin-round-rock-roofingThe slugify filter transforms arbitrary text into clean, search-engine-friendly URL slugs following Landmix CONTRACT.md specifications. It applies Unicode NFC normalization, converts letters to lowercase, replaces spaces and underscores with hyphens, removes special punctuation, and caps total length at 80 codepoints.
In programmatic SEO architectures, slugify generates uniform internal link URLs from raw keyword names. For example: <a href="/templates/{{ row.category | slugify }}/">View Category</a>. This guarantees predictable, clean URL structures free of encoding issues.
Filters
- abs
- append
- at_least
- at_most
- capitalize
- ceil
- compact
- concat
- date
- default
- divided_by
- downcase
- escape
- escape_once
- first
- floor
- join
- last
- lstrip
- map
- minus
- modulo
- newline_to_br
- plus
- prepend
- remove
- remove_first
- replace
- replace_first
- reverse
- round
- rstrip
- size
- slice
- sort
- sort_natural
- split
- strip
- strip_html
- strip_newlines
- times
- truncate
- truncatewords
- uniq
- upcase
- url_decode
- url_encode
- where
- raw
- slugify
- number_format
