Get the for loop name


#1

Good Day to all!!

is there a way to get the for loop name?

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

get the for loop name: chicken


#2

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


#3

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