【发布时间】:2018-03-29 18:25:18
【问题描述】:
上下文
我有一个名为 product-categories 的 jekyll 集合,其中每个文件在前面的内容中都有以下元数据:
_product-categories/filename1.md
---
- title
- uuid
---
我有一个页面,其前端包含来自此集合的文件名(集合数组选择由它们的文件名保存在前端)...
page.html
---
product-categories:
- filename1
- filename2
---
[list of product-categories to be displayed here]
目标
我想在页面上显示这些product-categories 的标题(来自集合元数据)。既然项目是通过文件名保存在front matter中的,这不应该是可能的吗?
【问题讨论】:
-
你试过什么代码?我相信这是可能的。