【发布时间】:2015-11-10 15:04:45
【问题描述】:
在我的液体文件中,我看到很多基于当前模板的条件语句,如下所示:
{% if template contains "product" %}
(do something)
{% endif %}
但我安装了一个应用程序,它创建了自己的页面:
MyStoreName.com/apps/store-locator
- 不使用模板。
我需要在我的 theme.liquid 文件中添加一些代码,该文件仅在此应用页面上执行。有没有其他方法来识别页面?
【问题讨论】: