问题描述
假设我有一个名为comments
的集合,其中包含一些json
文件,即
-_comments
- comment1.json
- comment2.json
- comment3.json
{% for item in site.comments %}
{{item.name}},{{item.comment}},...
{% endfor %}
但是什么也不显示。但是,如果我将一些markdown文件放在_comments
中,则for循环有效。这使我认为for item in site.comments
仅接受markdown文件。如何使其与json
文件一起使用?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)