Skip to content

Instantly share code, notes, and snippets.

@DanCanetti
Created February 28, 2021 22:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DanCanetti/edfbde802b9b00d7f6593a654f124675 to your computer and use it in GitHub Desktop.
Save DanCanetti/edfbde802b9b00d7f6593a654f124675 to your computer and use it in GitHub Desktop.
If first item in loop in Eleventy
{% 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