{% assign param = request.params[‘tag’] %}
{% capture search_str %}tag:”{{ param }}”{% endcapture %}
{% assign articles = site.articles | search: search_str %}
{% assign articles_size = articles | size %}
{% if articles_size > 0 %}
{% paginate articles per 10 %}
{% for article in paginate.collection %}
{% render ‘article’ | article: article %}
{% endfor %}
{% render ‘article’ | article: article %}
{% endfor %}
{% endpaginate %}
{% endif %}