{% comment %} Renders a set of links for paginated results. Must be used within paginate tags. Usage: {% paginate results by 2 %} {% render 'pagination', paginate: paginate, anchor: '#yourID' %} {% endpaginate %} Accepts: - paginate: {Object} - anchor: {String} (optional) This can be added so that on page reload it takes you to wherever you've placed your anchor tag. {% endcomment %} {{ 'component-pagination.css' | asset_url | stylesheet_tag }} {%- if paginate.parts.size > 0 -%}