Skip to content

Instantly share code, notes, and snippets.

@Phlow
Created December 26, 2015 13:20

Revisions

  1. Phlow created this gist Dec 26, 2015.
    6 changes: 6 additions & 0 deletions jekyll-loop-all-collections.liquid
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    {% for c in site.collections %}
    {% assign docs=c[1].docs %}
    {% for doc in docs %}
    // do something
    {% endfor %}
    {% endfor %}