ampersand_list
Turns a YAML list into an ampersand-connected sentence list
Sample Usage
{{ categories|ampersand_list }}
If {{ categories }}
looks like this:
categories:
- egg
- bird
- house
The output would look like this: egg, bird & house
.
When there are only two items in the list, no commas are used: egg & house
.
When there is only one item in the list, only that item is displayed: egg
.
Parameters
This modifier has no parameters.