Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法在液体中的语句中有一个变量,如下所示:
{% assign somevar = 'about-us' %} {{ pages.somevar.content }}
将产生与您最初使用的相同的输出:
{{ pages.about-us.content }}
{% assign somevar = 'about-us' %} {{ pages.[somevar].content }}
这对我来说很好......