Skip to content

Instantly share code, notes, and snippets.

@khoerodin
Forked from BryanSchuetz/concat.liquid
Created February 24, 2017 01:20
Show Gist options
  • Save khoerodin/41140144932e2971f3208aeac40b5cb3 to your computer and use it in GitHub Desktop.
Save khoerodin/41140144932e2971f3208aeac40b5cb3 to your computer and use it in GitHub Desktop.
Concat arrays in Jekyll(liquid)
{% assign all_hosts = "" | split: "" %}
{% for host in site.data.shared_hosts %}
{% assign all_hosts = all_hosts | push: host %}
{% endfor %}
{% for host in site.data.paas_hosts %}
{% assign all_hosts = all_hosts | push: host %}
{% endfor %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment