From 6081fcd75acdc31f45f2dddf7411d4857fda4d4e Mon Sep 17 00:00:00 2001 From: Parker Moore Date: Sat, 17 Jan 2015 16:00:35 -0800 Subject: [PATCH] Move the slugify options out to their own section so as to fix the formatting. --- site/_docs/templates.md | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) 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