如何将对象添加到 Jekyll 中的站点变量中?
How to add an object into a site variable in Jekyll?
我想在我的条件语句中传递一个对象作为站点变量。
我已经试过直接实现了……不行。
...
# I want to replace:
{% for author in site.research %}
...
# with:
...
{% for author in site.{{include.content}} %}
...
{% for author in site[include.content] %}
可以做到。
我想在我的条件语句中传递一个对象作为站点变量。
我已经试过直接实现了……不行。
...
# I want to replace:
{% for author in site.research %}
...
# with:
...
{% for author in site.{{include.content}} %}
...
{% for author in site[include.content] %}
可以做到。