4,396
edits
No edit summary |
No edit summary |
||
Line 40: | Line 40: | ||
} | } | ||
// Set up image toggle if more than one image is found | // Set up image toggle if more than one image is found | ||
if (cardImages.length > 1) { | if (cardImages.length > 1) { | ||
Line 81: | Line 80: | ||
if (cardImages.length > 0) { | if (cardImages.length > 0) { | ||
var initialImage = cardImages[0]; // Use the first image initially | var initialImage = cardImages[0]; // Use the first image initially | ||
articleContentHtml += | // Append the image HTML with the dynamic label | ||
articleContentHtml += getImageHtml(initialImage, 0, cardImages.length); // Add current index and total | |||
} | } | ||
// Add non-image content (description, reflection, etc.) | // Add non-image content (description, reflection, etc.) | ||
articleContentHtml += | articleContentHtml += |