Skip to content
This repository has been archived by the owner on Aug 14, 2023. It is now read-only.

update to use image_url #217

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/snippets/social-meta-tags.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
{%- assign og_type = 'product' -%}
{%- capture og_image_tags -%}
{%- for image in product.images limit: 3 -%}
<meta property="og:image" content="http:{{ image | product_img_url: 'master' }}">
<meta property="og:image:secure_url" content="https:{{ image | product_img_url: 'master' }}">
<meta property="og:image" content="http:{{ image | image_url: 'master' }}">
<meta property="og:image:secure_url" content="https:{{ image | image_url: 'master' }}">
<meta property="og:image:width" content="{{ image.width }}">
<meta property="og:image:height" content="{{ image.height }}">
<meta property="og:image:alt" content="{{ image.alt | escape }}">
Expand Down