Skip to content

Instantly share code, notes, and snippets.

@gmassel
Created May 20, 2015 19:30
Show Gist options
  • Save gmassel/166634ab9923c1cad9cf to your computer and use it in GitHub Desktop.
Save gmassel/166634ab9923c1cad9cf to your computer and use it in GitHub Desktop.
{% layout none %}
{% paginate collections by 50 %}
{
"collections": [{% for collection in collections %}
{
{% if collection.image %}"image": "{{ collection.image }}",{% endif %}
"body_html": "{{ collection.description | url_escape }}",
"handle": "{{ collection.handle }}",
"id": {{ collection.id }},
"sort_order": "{{ collection.default_sort_by }}",
"template_suffix": "{{ collection.template_suffix }}",
"title": "{{ collection.title }}",
"products_count": {{ collection.products_count }},
"url": "{{ collection.url }}",
"products": []
}{% unless forloop.last %},{% endunless %}{% endfor %}
]
}
{% endpaginate %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment