Move the slugify options out to their own section so as to fix the formatting.

This commit is contained in:
Parker Moore 2015-01-17 16:00:35 -08:00
parent ae57f693e4
commit 6081fcd75a
1 changed files with 11 additions and 8 deletions

View File

@ -214,14 +214,7 @@ common tasks easier.
<tr> <tr>
<td> <td>
<p class="name"><strong>Slugify</strong></p> <p class="name"><strong>Slugify</strong></p>
<p>Convert a string into a lowercase URL "slug".</p> <p>Convert a string into a lowercase URL "slug". See below for options.</p>
<p>Optional argument mode specify what characters are replaced with a hyphen. The default value is 'default'.</p>
<ul>
<li>'none': no characters</li>
<li>'raw': spaces</li>
<li>'default': spaces and non-alphanumeric characters</li>
<li>'pretty': spaces and non-alphanumeric characters except for <em>._~!$&amp;'()+,;=@</em></li>
</ul>
</td> </td>
<td class="align-center"> <td class="align-center">
<p> <p>
@ -270,6 +263,16 @@ common tasks easier.
</table> </table>
</div> </div>
### 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 ## Tags
### Includes ### Includes