first Filter
Get the first element of an array.
Parameters
None.
Category
Description
Returns the first element of an array.
{% assign places = navigation.links | map: 'title' %}
<p>
The first place to visit is {{ places | first }}.
</p>
You can also access first via dot notation on the array (e.g.,
my_array.first).
{{ video.embed_urls.first.content_type }}