From f50b64f876779d05362d33830061ce0a1287b79f Mon Sep 17 00:00:00 2001 From: Tomas Dvorak Date: Thu, 29 May 2025 10:49:39 +0200 Subject: [PATCH] ff --- index.html | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index d4814b2..15166cc 100644 --- a/index.html +++ b/index.html @@ -145,9 +145,6 @@ " alt="Banner obrázek" class="banner-image" onerror="console.error('Failed to load banner image:', this.src)"> `; - // Add image to content - content += imgContainer; - // Wrap image with link if URL is provided if (bannerLink) { imgContainer = ` @@ -187,8 +184,8 @@ `; } - // Add image if position is right or bottom - if (['right', 'bottom'].includes(imagePosition)) { + // Add image if position is right or bottom (only if not already added) + if (['right', 'bottom'].includes(imagePosition) && !['left', 'top'].includes(imagePosition)) { content += imgContainer; }