【发布时间】:2016-11-18 15:23:54
【问题描述】:
- Jekyll 版本:2.4.0
- github页面版本:35
我的复制步骤
- 在本地构建并循环显示集合
site.collections.guides.docs,在_site文件夹中生成正确的.html。 - 但是,当我部署到 github 时,它不显示循环内容。
我想要的输出
在 github 页面中显示了循环,如果有人看看on my repo,将不胜感激。
我的代码:
// index.html
{% for doc in site.collections.guides.docs %}
{{ doc.content }}
{% endfor %}
// _config.yml
collections :
guides:
output: true
【问题讨论】:
标签: loops github collections jekyll github-pages