diff --git a/site/_docs/templates.md b/site/_docs/templates.md index fbf63626..36a06e4c 100644 --- a/site/_docs/templates.md +++ b/site/_docs/templates.md @@ -214,11 +214,27 @@ common tasks easier.
Slugify
-Convert a string into a lowercase URL "slug" by replacing every sequence of spaces and non-alphanumeric characters with a hyphen.
+Convert a string into a lowercase URL "slug".
+Optional argument mode specify what characters are replaced with a hyphen. The default value is 'default'.
+
- {% raw %}{{ page.title | slugify }}{% endraw %}
+ {% raw %}{{ "The _config.yml file" | slugify }}{% endraw %}
+
+ the-config-yml-file
+
+ {% raw %}{{ "The _config.yml file" | slugify: 'pretty' }}{% endraw %}
+
+ the-_config.yml-file