Get the for loop name


Good Day to all!!

is there a way to get the for loop name?

{% for chicken in site.posts %}
{% endfor %}

get the for loop name: chicken


not that I know of, but you could make a variable? {% assign loopname = 'checken' %} {{loopname}}


yes… thank sir. .this is great… first time to know assign… hehe