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, 8

The 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.

Try this syntax in the editor.