Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/kishaningithub/hugo-shopping-product-catalogue-simple.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKishan B <bkishan@thoughtworks.com>2018-06-01 08:10:01 +0300
committerKishan B <bkishan@thoughtworks.com>2018-06-01 08:10:25 +0300
commitc9b4042726508a13ad38eb79d4c938d11c0f2fde (patch)
tree509d2c8bb476221eebcd578f0177f8bf5ea9c496
parentf2d30d3dc6cb05d60e2377cdd63202cde5609c7f (diff)
Use smaller images for thumbnails
-rw-r--r--importer/shopify/index.js2
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 {