Html 简单for循环不在Jekyll中工作

Html 简单for循环不在Jekyll中工作,html,ruby,for-loop,tags,jekyll,Html,Ruby,For Loop,Tags,Jekyll,我一辈子都不明白为什么这不管用 <p> {% for game in site.data.games %} <span>{% game.name %}</span> {% endfor %} </P> 在_数据文件夹中使用这个.yml games: - name: Game1 platforms: { win32, win64, linux64 } distribution: here: null

我一辈子都不明白为什么这不管用

<p>
{% for game in site.data.games %}
    <span>{% game.name %}</span>
{% endfor %}
</P>
在_数据文件夹中使用这个.yml

games:
  - name: Game1
    platforms: { win32, win64, linux64 }
    distribution:
      here: null
      desura: http://www.desura.com/games/Game1
      source: https://github.com/mygithub/Game1
    description: cg/games/Game1/description.html
    release: 2013-06-23

  - name: Game2
    platforms: {win32, win64, mac, linux32, linux64, android, ios, ouya, web}
    distribution:
      here: null
      desura: null
      steam: null
    description: cg/games/Game2/description.html
    release: 2015-Q1

语法不正确

<span>{{ game.name }}</span>
{{game.name}

语法不正确

<span>{{ game.name }}</span>
{{game.name}

非常感谢,我猜这就是我在凌晨4点编写代码时得到的结果,哈哈。你能批准这个答案吗?噢,对不起,花了这么长时间(非常感谢,我猜这就是我在凌晨4点编码的结果,哈哈。你能批准这个答案吗?哦,对不起,花了这么长时间。)(