Can a liquid for loop contain a page variable in Jekyll?

后端 未结 1 1510
栀梦
栀梦 2021-01-14 06:18

Let\'s say I have a bunch of _data files that I use to create a list for specific pages. All of the pages that have these lists have a custom front matter varia

1条回答
  •  北荒
    北荒 (楼主)
    2021-01-14 06:23

    You can use the bracket notation like this :

    {% for item in site.data[page.pageName] %}
    

    0 讨论(0)
提交回复
热议问题