0
鑑於這種JSON:如何從Liquid中的數組中獲取子項?
case studies: [
[ "Nubaru",
["Nubaru Yearly Report", "Web design", "2013", "/case-studies/Nubaru.html", "/images/case-studies/Nubaru.png"]
],
[ "Ekande",
["Ekande application", "Web application design", "2013", "/case-studies/Ekande.html", "/images/case-studies/Ekande.png"]
]
]
該液態(使用化身):
<ul>
{% for items in page.case-studies %}
{% for item in items %}
<li>
{{ item }}
<!-- How to get sub items? -->
</li>
{% endfor %}
{% endfor %}
</ul>
- 我將如何訪問內部數組中的數據?
- 有沒有一種方法來命名數據,所以我可能會這樣訪問它:{{case-study.date}}?