Section
Blog post
3 个模板实例,3 个 section 配置,5 类 block。
真实模板变体
Schema
{
"name": "Blog post",
"class": "article-section",
"settings": [
{
"type": "header",
"content": "Settings"
},
{
"type": "checkbox",
"id": "article_show_date",
"label": "Show date",
"default": true
},
{
"type": "checkbox",
"id": "article_show_author",
"label": "Show author",
"default": true
}
],
"blocks": [
{
"type": "@app",
"settings": []
},
{
"type": "featured_image",
"name": "Featured Image",
"limit": 1,
"settings": [
{
"type": "select",
"id": "image_ratio",
"options": [
{
"value": "adapt",
"label": "Adapt to image"
},
{
"value": "small",
"label": "Small"
},
{
"value": "medium",
"label": "Medium"
},
{
"value": "large",
"label": "Large"
}
],
"default": "medium",
"label": "Featured image height"
}
]
},
{
"type": "title",
"name": "Title",
"limit": 1,
"settings": [
{
"type": "checkbox",
"id": "article_show_excerpt",
"label": "Show excerpt",
"default": true
},
{
"type": "range",
"id": "excerpt_length",
"min": 20,
"max": 50,
"step": 2,
"default": 30,
"label": "Excerpt length"
},
{
"type": "checkbox",
"id": "article_show_sharing",
"label": "Show sharing buttons",
"default": true
},
{
"type": "paragraph",
"content": "If you include a link in social media posts, the page’s featured image will be shown as the preview image. [Learn more](https://help.shopify.com/en/manual/online-store/images/showing-social-media-thumbnail-images)."
},
{
"type": "paragraph",
"content": "A store title and description are included with the preview image. [Learn more](https://help.shopify.com/en/manual/promoting-marketing/seo/adding-keywords#set-a-title-and-description-for-your-online-store)."
}
]
},
{
"type": "content",
"name": "Content",
"limit": 1,
"settings": [
{
"type": "select",
"id": "date_format",
"label": "Date format",
"options": [
{
"value": "Posted on",
"label": "Posted on"
},
{
"value": "Updated on",
"label": "Updated on"
}
],
"default": "Posted on"
}
]
},
{
"type": "tags",
"name": "Tags",
"limit": 1,
"settings": []
}
],
"presets": []
}