title: Symfony - How can I omit the first item in a twig template's loop?
body: <p>I want to display news without first one. How I can achieve this?</p>
  
  <p>Here is code I have to change:</p>
  
  <pre><code>&lt;div class="home-box-news carousel-news slide home-box-shadow" id="news" style="clear: both;"&gt;
      &lt;ol class="carousel-indicators news-box"&gt;
  
      {% for i in 0..news|length-1 %}
          {% if loop.index is not divisibleby (2) %}
              &lt;li data-target="#news" data-slide-to="{{ i / 2 }}" {% if loop.first %}class="active"{% endif %}&gt;&lt;/li&gt;
          {% endif %}
      {% endfor %}
  
      &lt;/ol&gt;
      &lt;div class="carousel-inner"&gt;
      {% for item in news %}
          {% if loop.index is not divisibleby (2) %}
              &lt;div class="item{% if loop.first %} active{% endif %}"&gt;
              &lt;div class="carousel-caption"&gt;
          {% endif %}
              &lt;h3&gt;&lt;a href="{{ path('home_news_index') }}"&gt;{{ item.name }}&lt;/a&gt;&lt;/h3&gt;
              &lt;p class="date"&gt;{{ item.createdAt|date('d.m.Y, G:i') }}&lt;/p&gt;
              &lt;p {% if loop.index is divisibleby (2) %}style="border-bottom: 0;" {% endif %}&gt;{{ item.content[:110]|nl2br }}{% if item.content|length &gt; 110 %}... &lt;a class="more" href="{{ path('home_news_index') }}"&gt;czytaj dalej&lt;/a&gt;{% endif %}&lt;/p&gt;
          {% if loop.index is divisibleby (2) or loop.last %}
              &lt;/div&gt;
              &lt;/div&gt;
          {% endif %}
      {% endfor %}
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>