如何检查当前页面是否是shopify集合中的最后一个页面?
我想在集合的最后一页中呈现一些HTML元素,仅在最后一页中呈现。 我想知道如何检查这一页是否是最后一次使用液体 我去了关于paginate液体的Shopify文档,但没有找到解决方案 以下是集合页面的分页代码-如何检查当前页面是否是shopify集合中的最后一个页面?,shopify,liquid,Shopify,Liquid,我想在集合的最后一页中呈现一些HTML元素,仅在最后一页中呈现。 我想知道如何检查这一页是否是最后一次使用液体 我去了关于paginate液体的Shopify文档,但没有找到解决方案 以下是集合页面的分页代码- <div class="sixteen columns"> <div class="section clearfix"> <div class="paginate"> {% if paginate.pages &
<div class="sixteen columns">
<div class="section clearfix">
<div class="paginate">
{% if paginate.pages > 1 %}
{{ paginate | default_pagination | replace: '»', '<span class="icon-right-arrow"></span>' | replace: '«', '<span class="icon-left-arrow"></span>' }}
{% endif %}
</div>
</div>
</div>
{%如果paginate.pages>1%}
{{分页|默认分页|替换:'»;',''替换:'«;',''}
{%endif%}
谢谢。好的,这是我找到的解决方案,它对我有效-
{% unless paginate.next.is_link %} // Check if the page is the last one
Add HTML here
{% endunless %}