map
Extract the values of a given property from each object in an array to create a flat array.
Syntax
{{ array | map: property }}Example
{% assign words = "Seattle,Portland" | split: "," %}{{ words | map: "size" | join: ", " }}Output
7, 8The map filter extracts a designated property from each object across an array collection, returning a new array populated with the extracted property values.
On programmatic landing pages, map extracts title or URL fields from collections like page.related to assemble natural internal linking copy. For example: {{ page.related | map: 'title' | join: ', ' }}. This weaves related regional page titles directly into explanatory copy, strengthening internal topical authority for search crawlers.
Filters
- abs
- append
- at_least
- at_most
- capitalize
- ceil
- compact
- concat
- date
- default
- divided_by
- downcase
- escape
- escape_once
- first
- floor
- join
- last
- lstrip
- map
- minus
- modulo
- newline_to_br
- plus
- prepend
- remove
- remove_first
- replace
- replace_first
- reverse
- round
- rstrip
- size
- slice
- sort
- sort_natural
- split
- strip
- strip_html
- strip_newlines
- times
- truncate
- truncatewords
- uniq
- upcase
- url_decode
- url_encode
- where
- raw
- slugify
- number_format
