{% assign posts = "" | split: ", " %} {% for tag in include.tags %} {% assign tagPosts = site.posts | where_exp: "item","item.tags contains tag" %} {% assign posts = posts | concat: tagPosts %} {% endfor %} {% assign posts = posts | sort: "date" | reverse %}
{% for article in posts limit: include.limit %} {% include articles/horizontal-article.html article=article %} {% endfor %}