Bug of site variable

I have a code like this
— html
{% for item in site.social %}

  • {% endfor %} ``` and in site.yaml I have ``` social: url: - https://fr-fr.facebook.com/ - https://github.com/ icon: - facebook-square - github ``` and wen I refresh my webpage I have 2
  • but the value of item.url and item.icon are empty
  • Your data is not structured correctly for that loop. You’d need something like:

    social:
      - url: URL1
        icon: ICON1
      - url: URL2
        icon: ICON2