nicolabs.net/_includes/allposts.liquid

10 lines
310 B
Text

{% comment %}
Creates the 'allposts' array with posts from all collections (preposts & posts actually).
TODO Make it a plugin (cleaner)
{% endcomment %}
{% assign allposts = "" | split: "" %}
{% for collection in site.collections %}
{% assign allposts = allposts | concat: collection.docs %}
{% endfor %}