Modifier: ol


Turn an array into an HTML ordered list element.

food:
  - sushi
  - broccoli
  - kale
{{ food | ol }}
<ol>
  <li>sushi</li>
  <li>broccoli</li>
  <li>kale</dd>
</ol>

Additional Reading

Learn how to use and chain modifiers in the Antlers template guide.

Last modified on March 31, 2016