New answers tagged


This isn't ideal and reviewing your markup might be a better alternative but you could use the loop variable provided by Twig's for (docs). For you example, something like this should work {# Inject this on the first iteration only #} {% if loop.first %} <div class="relative bg-gray-50 pt-16 pb-20 px-4 sm:px-6 lg:pt-24 lg:pb-28 lg:px-8"> &...

Top 50 recent answers are included