Skip to content

Commit

Permalink
Open item image links in a new tab
Browse files Browse the repository at this point in the history
  • Loading branch information
codecodeio committed Jun 17, 2024
1 parent 2d1db5a commit 9fbdf1e
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions best-cigars-guide/blocks/item/item.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -79,7 +74,7 @@ function render(data) {

return `
<h3>${data.Name}</h3>
<a href="${data.Link}">
<a href="${data.Link}" target="_blank">
${data.Image}
</a>
<div class="item-info">
Expand Down

0 comments on commit 9fbdf1e

Please sign in to comment.