diff --git a/site/_docs/templates.md b/site/_docs/templates.md index 36a06e4c..cc1d9d87 100644 --- a/site/_docs/templates.md +++ b/site/_docs/templates.md @@ -214,14 +214,7 @@ common tasks easier.
Slugify
-Convert a string into a lowercase URL "slug".
-Optional argument mode specify what characters are replaced with a hyphen. The default value is 'default'.
-Convert a string into a lowercase URL "slug". See below for options.
@@ -270,6 +263,16 @@ common tasks easier. +### Options for the `slugify` filter + +The `slugify` filter accepts an option, each specifying what to filter. +The default is `default`. The are as follows (with what they filter): + +- `none`: no characters +- `raw`: spaces +- `default`: spaces and non-alphanumeric characters +- `pretty`: spaces and non-alphanumeric characters except for `._~!$&'()+,;=@` + ## Tags ### Includes