Skip to content

Commit

Permalink
Blog posts
Browse files Browse the repository at this point in the history
  • Loading branch information
katycobb committed Dec 20, 2024
1 parent 239d8ff commit a9496ee
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 48 deletions.
37 changes: 11 additions & 26 deletions locales/en.default.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1686,7 +1686,7 @@
"name": "Featured image",
"settings": {
"image_height": {
"label": "Featured image height",
"label": "Image height",
"options__1": {
"label": "Adapt to image"
},
Expand All @@ -1698,19 +1698,18 @@
},
"options__4": {
"label": "Large"
},
"info": "For best results, use an image with a 16:9 aspect ratio. [Learn more](https://help.shopify.com/manual/shopify-admin/productivity-tools/image-editor#understanding-image-aspect-ratio)"
}
}
}
},
"title": {
"name": "Title",
"settings": {
"blog_show_date": {
"label": "Show date"
"label": "Date"
},
"blog_show_author": {
"label": "Show author"
"label": "Author"
}
}
},
Expand All @@ -1723,12 +1722,6 @@
"text": {
"label": "Text",
"default": "Share"
},
"featured_image_info": {
"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/manual/online-store/images/showing-social-media-thumbnail-images)."
},
"title_info": {
"content": "A store title and description are included with the preview image. [Learn more](https://help.shopify.com/manual/promoting-marketing/seo/adding-keywords#set-a-title-and-description-for-your-online-store)."
}
}
}
Expand All @@ -1737,33 +1730,26 @@
"main-blog": {
"name": "Blog posts",
"settings": {
"header": {
"content": "Blog post card"
},
"show_image": {
"label": "Show featured image"
"label": "Featured image"
},
"show_date": {
"label": "Show date"
"label": "Date"
},
"show_author": {
"label": "Show author"
},
"paragraph": {
"content": "Change excerpts by editing your blog posts. [Learn more](https://help.shopify.com/manual/online-store/blogs/writing-blogs#display-an-excerpt-from-a-blog-post)"
"label": "Author"
},
"layout": {
"label": "Desktop layout",
"label": "Layout",
"options__1": {
"label": "Grid"
},
"options__2": {
"label": "Collage"
},
"info": "Posts are stacked on mobile."
}
},
"image_height": {
"label": "Featured image height",
"label": "Image height",
"options__1": {
"label": "Adapt to image"
},
Expand All @@ -1775,8 +1761,7 @@
},
"options__4": {
"label": "Large"
},
"info": "For best results, use an image with a 3:2 aspect ratio. [Learn more](https://help.shopify.com/manual/shopify-admin/productivity-tools/image-editor#understanding-image-aspect-ratio)"
}
}
}
},
Expand Down
11 changes: 1 addition & 10 deletions sections/main-article.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -328,8 +328,7 @@
}
],
"default": "adapt",
"label": "t:sections.main-article.blocks.featured_image.settings.image_height.label",
"info": "t:sections.main-article.blocks.featured_image.settings.image_height.info"
"label": "t:sections.main-article.blocks.featured_image.settings.image_height.label"
}
]
},
Expand Down Expand Up @@ -367,14 +366,6 @@
"id": "share_label",
"label": "t:sections.main-article.blocks.share.settings.text.label",
"default": "t:sections.main-article.blocks.share.settings.text.default"
},
{
"type": "paragraph",
"content": "t:sections.main-article.blocks.share.settings.featured_image_info.content"
},
{
"type": "paragraph",
"content": "t:sections.main-article.blocks.share.settings.title_info.content"
}
]
}
Expand Down
14 changes: 2 additions & 12 deletions sections/main-blog.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,6 @@
"tag": "section",
"class": "section",
"settings": [
{
"type": "header",
"content": "t:sections.main-blog.settings.header.content"
},
{
"type": "select",
"id": "layout",
Expand All @@ -74,8 +70,7 @@
}
],
"default": "collage",
"label": "t:sections.main-blog.settings.layout.label",
"info": "t:sections.main-blog.settings.layout.info"
"label": "t:sections.main-blog.settings.layout.label"
},
{
"type": "checkbox",
Expand Down Expand Up @@ -105,8 +100,7 @@
}
],
"default": "medium",
"label": "t:sections.main-blog.settings.image_height.label",
"info": "t:sections.main-blog.settings.image_height.info"
"label": "t:sections.main-blog.settings.image_height.label"
},
{
"type": "checkbox",
Expand All @@ -120,10 +114,6 @@
"default": false,
"label": "t:sections.main-blog.settings.show_author.label"
},
{
"type": "paragraph",
"content": "t:sections.main-blog.settings.paragraph.content"
},
{
"type": "header",
"content": "t:sections.all.padding.section_padding_heading"
Expand Down

0 comments on commit a9496ee

Please sign in to comment.