Untitled

mail@pastecode.io avatar
unknown
plain_text
3 years ago
1.5 kB
14
Indexable
Never
{% set existingIds = [] %}
<section class="section">
<div class="container">
      <div class="columns">
  <div class="column is-8">
      <div class="columns">
  <div class="column is-12">
 {% set entries = craft.entries
    .section('articles')
    .with([
        'featureImage',
        'postCategories'
    ])
    .limit(1)
    .featured('feature')
    .all() %}
 {% for entry in entries %}
    {% if entry.id not in existingIds %}
{% include '_blocks/big/entries.twig'  %}
 {% set existingIds = existingIds|merge([entry.id]) %}
    {% endif %}
{% endfor %}
</div>
</div>
  <div class="columns">
{% set entries = craft.entries
    .section('articles')
    .with([
        'featureImage',
        'postCategories'
    ])
    .limit(2)
    .featured('feature')
    .offset(1)
    .all() %}

    {% for entry in entries %}
    {% 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>
  <div class="columns is-multiline">
{% set entries = craft.entries
    .section('articles')
    .type('novosti')
    .with([
        'featureImage',
        'postCategories'
    ])
    .limit(3)
    .offset(2)
    .all() %}
 {% for entry in entries %}
    {% if entry.id not in existingIds %}
  <div class="column is-4">
{% include '_blocks/small/entries.twig'  %}
</div>
 {% set existingIds = existingIds|merge([entry.id]) %}
    {% endif %}
{% endfor %}
</div>