Created
February 28, 2021 22:32
-
-
Save DanCanetti/edfbde802b9b00d7f6593a654f124675 to your computer and use it in GitHub Desktop.
If first item in loop in Eleventy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% for key in collection %} | |
{% if forloop.first == true %} | |
<p>{{ key.data.dataName }}</p> | |
{% endif %} | |
{% endfor %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment