page_image
用于在搜索引擎列表和当前页面的社交媒体预览中显示的图片。
产品和集合页面,以及博客帖子的特色图片将被使用。对于所有其他页面,或者没有特色图片的页面,将使用社交分享图片,如果没有社交分享图片的话则使用店铺 logo。
例子
指定站点分享到社交媒体时显示的图片
为不同页面创建不同的 Open Graph og:image 元标签,当站点被分享到社交媒体时,指定某张图片展示站点页面缩略图。
{{#if page_image.src}}
<meta property="og:image" content="{{page_image.src}}" />
<meta property="og:image:secure_url" content="{{page_image.src}}" />
<meta property="og:image:width" content="{{page_image.width}}" />
<meta property="og:image:height" content="{{page_image.height}}" />
{{/if}}
这篇文章对你有帮助吗?
SHOPLINE