You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry, I don't recall exactly. The Liquid templating language is, in my opinion, extremely annoying and irregular, so it wouldn't be surprising if weird, inexplicable stuff happened.
In this particular case, however, item[1] is not the same as item. I think it's a pair of names and people, so item[0] would be a name and item[1] is the whole person object. So using item.role wouldn't work; you'd need item[1].role (if Liquid supports that).
in role-people.html you loop through the people in the _data/people.yaml file.
I have a Jekyll formatting question. Specifically, the for loop looks like:
Why do you need that assign statement? Why can't you use the item variable directly and simply say:
I know my way doesn't work. I just can't figure out why and I was hoping since you guys have more experience, you can tell me why.
Thanks
-Nickvash Kani
The text was updated successfully, but these errors were encountered: