【发布时间】:2018-06-21 08:06:28
【问题描述】:
我想显示“测试”集合页面的描述。
如果网址是mysite.com/collections/test,那么它会显示描述部分。
但如果 url 有额外的标签,例如:mysite.com/collections/test/big 它不会显示描述。
我尝试使用下面的代码,但没有成功:
{% if collection.description != blank %}
{% if collection.url == '/collections/test' %}
<div class="collection-description regular-content mb30">
{{ collection.description }}
</div>
{% endif %}
{% endif %}
请帮我解决这个问题。谢谢。
【问题讨论】: