According to Shopify’s documentation, you can’t create arrays with liquid.
So it’s not as clean as something like:
But instead you can create accessible arrays in liquid using the
Even though is not particularly elegant, it does the job. You can then loop over this array and do whatever you like: