tomgatenby
9/21/2015 - 8:54 AM

ad rel next + prev to site

ad rel next + prev to site

{% if paginate.previous %}
<link rel="prev" href="{{ shop.url }}{{ paginate.previous.url }}/" />
{% endif %}
{% if paginate.next %}
<link rel="next" href="{{ shop.url }}{{ paginate.next.url }}/" />
{% endif %}
{% if paginate.current_page == 1 %}
<link rel="canonical" href="http://www.myshopifystore.com{{ collection.url }}/" />
{% else %}
<link rel="canonical" href="http://www.myshopifystore.com
{{ collection.url }}?page={{ paginate.current_page }}/" />
{% endif %}