ordered_list
Turns a YAML list into a HTML ordered list
Sample Usage
{{ categories|ordered_list }}
If {{ categories }}
looks like this:
categories:
- egg
- bird
- house
The output would look like this:
<ol>
<li>egg</li>
<li>bird</li>
<li>house</li>
</ol>
Note that you can’t set a class or and ID on the ordered-list that gets generated. This modifier is simply a shortcut for times when all you need is a quick list.
Parameters
This modifier has no parameters.