Untitled
unknown
plain_text
4 years ago
711 B
49
Indexable
{% set entries = craft.entries
.section('articles')
.with([
'featureImage',
'postCategories'
])
.featured('feature')
.all() %}
<div class="columns">
{% for entry in entries|slice(0, 1) %}
{% if entry.id not in existingIds %}
<div class="column is-12">
{% include '_blocks/big/entries.twig' %}
</div>
{% set existingIds = existingIds|merge([entry.id]) %}
{% endif %}
{% endfor %}
</div>
<div class="columns">
{% for entry in entries|slice(1,2) %}
{% if entry.id not in existingIds %}
<div class="column is-6">
{% include '_blocks/medium/entries.twig' %}
</div>
{% set existingIds = existingIds|merge([entry.id]) %}
{% endif %}
{% endfor %}
</div>Editor is loading...