concat

Combine two separate arrays into a single unified array without altering the original collections.

Syntax

{{ array | concat: second_array }}

Example

{% assign a = "Spring,Summer" | split: "," %}{% assign b = "Autumn,Winter" | split: "," %}{% assign all = a | concat: b %}{{ all | join: " - " }}

Output

Spring - Summer - Autumn - Winter

The concat filter joins two arrays sequentially, producing a new combined array that contains all elements from both sources while preserving their original order without mutating either collection.

On programmatic landing pages, concat merges standard brand guarantees with location-specific service offerings into a unified list. For example: {% assign all_services = global_services | concat: local_services %}. Looping over the merged array renders complete, comprehensive service catalogs tailored for local search indexing.

Try this syntax in the editor.