diff options
author | Kishan B <bkishan@thoughtworks.com> | 2018-06-01 08:10:01 +0300 |
---|---|---|
committer | Kishan B <bkishan@thoughtworks.com> | 2018-06-01 08:10:25 +0300 |
commit | c9b4042726508a13ad38eb79d4c938d11c0f2fde (patch) | |
tree | 509d2c8bb476221eebcd578f0177f8bf5ea9c496 | |
parent | f2d30d3dc6cb05d60e2377cdd63202cde5609c7f (diff) |
Use smaller images for thumbnails
-rw-r--r-- | importer/shopify/index.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/importer/shopify/index.js b/importer/shopify/index.js index 7977035..c021510 100644 --- a/importer/shopify/index.js +++ b/importer/shopify/index.js @@ -32,7 +32,7 @@ function getFrontMatter(product) { frontMatter.categories = [product.product_type]; } frontMatter.images = product.images.map(image => image.src); - frontMatter.thumbnailImage = product.images[0].src; + frontMatter.thumbnailImage = product.images[0].src.replace('.jpg', '_large.jpg').replace('.png', '_large.png'); if(product.options[0].name == "Title"){ frontMatter.options = {} } else { |