Skip to content

Instantly share code, notes, and snippets.

@davidrleonard
Created January 7, 2015 20:58
Show Gist options
  • Save davidrleonard/59ecc9f12ee596df70d5 to your computer and use it in GitHub Desktop.
Save davidrleonard/59ecc9f12ee596df70d5 to your computer and use it in GitHub Desktop.
Jekyll/Liquid: Iterate over array in include
{% assign similar-speakers = 'catherine-bracy|michal-migurski' | split: '|' %}
<section class="layout-semibreve">
{% for entries in similar-speakers %}
{% for speaker in entries %}
<div class="layout-minim">{% include people/{{ speaker }}.html context="speaker-card" base=".." %}</div>
{% endfor %}
{% endfor %}
</section>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment