Skip to content

Instantly share code, notes, and snippets.

@BryanSchuetz
Created May 5, 2016 16:20
Show Gist options
  • Save BryanSchuetz/52012affd9318ba59e19a74639a8c16a to your computer and use it in GitHub Desktop.
Save BryanSchuetz/52012affd9318ba59e19a74639a8c16a 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