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