Skip to content

Commit c475d44

Browse files
committed
chore: fix test
1 parent 160269c commit c475d44

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/templates/html/HTMLTemplate.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ ${HTMLTemplate.metaProperty('og:title', product.metaTitle || product.name)}
8989
${HTMLTemplate.metaProperty('og:image', image?.url)}
9090
${HTMLTemplate.metaProperty('og:image:secure_url', image?.url)}
9191
${HTMLTemplate.metaProperty('og:type', 'product')}
92-
${HTMLTemplate.metaProperty('image', image?.url)}`; // html2md will treat this as the og:image
92+
${HTMLTemplate.metaName('image', image?.url)}`; // html2md will treat this as the og:image
9393
}
9494

9595
/**

test/fixtures/post-deploy/bella-tank.html

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
<meta property="og:image" content="https://www.aemshop.net/media/catalog/product/w/t/wt01-blue_main_1.jpg">
1212
<meta property="og:image:secure_url" content="https://www.aemshop.net/media/catalog/product/w/t/wt01-blue_main_1.jpg">
1313
<meta property="og:type" content="product">
14+
<meta name="image" content="https://www.aemshop.net/media/catalog/product/w/t/wt01-blue_main_1.jpg">
1415
<meta name="twitter:card" content="summary_large_image">
1516
<meta name="twitter:title" content="Bella Tank">
1617
<meta name="twitter:image" content="https://www.aemshop.net/media/catalog/product/w/t/wt01-blue_main_1.jpg">

0 commit comments

Comments
 (0)