Hello! I am trying to setup a blog category page for www.usroast.com, one that will have a grid of 3-4 pictures that will link to our different blog types. I’ve come up with one but it keeps giving me the same error message:
{% schema %}
{
“name”: “Image Grid”,
“settings”: [
{
“type”: “text”,
“id”: “title”,
“label”: “Title”,
“default”: “Image Grid”
},
{
“type”: “group”,
“id”: “image_blocks”,
“label”: “Image Blocks”,
“info”: “Add up to 9 image blocks.”,
“repeatable”: true,
“max_items”: 9,
“settings”: [
{
“type”: “image_picker”,
“id”: “image”,
“label”: “Image”
},
{
“type”: “text”,
“id”: “link”,
“label”: “Link”
}
]
},
{
“type”: “range”,
“id”: “images_per_row”,
“label”: “Images per row”,
“default”: 3,
“min”: 1,
“max”: 4,
“step”: 1
}
]
}
{% endschema %}
{% assign images_per_row = section.settings.images_per_row %}
{% assign image_blocks = section.settings.image_blocks %}
{% assign rows = image_blocks.size | divided_by: images_per_row %}
Thanks!