{% extends '@nucleus/partials/particle.html.twig' %} {% set attr_extra = particle.extra|attribute_array %} {% set article_settings = particle.article %} {% set filter = article_settings.filter %} {% set sort = article_settings.sort %} {% set limit = article_settings.limit %} {% set start = limit.start + max(0, ajax.start|int) %} {% set display = article_settings.display %} {% set collection = grav.page.collection( { items: {'@taxonomy.category': filter.categories|split(' ')}, order: {by: sort.orderby, dir: sort.ordering}, url_taxonomy_filters: false }, false) %} {% set total = collection.count() %} {% set pages = collection.slice(start, limit.total) %} {% block particle %} {# All pages #}