push

Appends an element to the end of an array.

Input:

{{ "John, Paul, George" | split: ", " | push: "Ringo" | join: ", " }}

Output:

"John, Paul, George, Ringo"

This filter also works on arrays with objects, generated by Plate:

{{ site.pages | push: page }}