cliveportman/code

Getting parent loop indexes within child loops when using Twig

Oh, you beauty!

{% if loop.parent.loop.first %}

Craft CMS - your decision to use Twig as the templating language is the gift that keeps on giving!

Hat tip.