Learn

unordered_list

Turns a YAML list into a HTML unordered list

Sample Usage

{{ categories|unordered_list }}

If {{ categories }} looks like this:

categories:
  - egg
  - bird
  - house

The output would look like this:

<ul>
   <li>egg</li>
   <li>bird</li>
   <li>house</li>
</ul>

Note that you can’t set a class or and ID on the unordered-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.

This article was last updated on March 30th, 2016. Find an error? Please let us know!