Files
liquid/_filters/first.md
2015-07-25 17:09:54 -04:00

393 B

title
title
first

Return the first element of an array.

Code Output
{% raw %}`{{ product.tags first }}`{% endraw %}

In the sample above, assume that product.tags resolves to: ["sale", "mens", "womens", "awesome"].