From 9fbdf1e4088e3cfbeab06535bed44b028092a387 Mon Sep 17 00:00:00 2001 From: Matthew Gold Date: Mon, 17 Jun 2024 13:44:18 -0400 Subject: [PATCH] Open item image links in a new tab --- best-cigars-guide/blocks/item/item.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/best-cigars-guide/blocks/item/item.js b/best-cigars-guide/blocks/item/item.js index 55cab3b..b2350e1 100644 --- a/best-cigars-guide/blocks/item/item.js +++ b/best-cigars-guide/blocks/item/item.js @@ -51,12 +51,7 @@ function renderRatingStars(data) { */ function renderStats(data) { // list of possible stat fields from block data - const stats = [ - 'Country', - 'Strength', - 'Wrapper', - 'Color', - ]; + const stats = ['Country', 'Strength', 'Wrapper', 'Color']; let output = ''; // eslint-disable-next-line no-plusplus @@ -79,7 +74,7 @@ function render(data) { return `

${data.Name}

- + ${data.Image}