summaryrefslogtreecommitdiff
path: root/internal/glightbox/html_renderer.go
diff options
from:
to:
context:
space:
mode:
authorGravatar SayaAndy <montferrat@tuta.io> 2025-10-17 01:16:18 +0700
committerGravatar SayaAndy <montferrat@tuta.io> 2025-10-17 01:16:18 +0700
commitdb174993127a8b2faf863a670fd6ce8ca8d7c1af (patch)
tree25d6b5763bcce6144e84383cb09c82d4c05f57fa /internal/glightbox/html_renderer.go
parent44fe2478478225450becb77ad5d273462c9b400a (diff)
downloadweb-db174993127a8b2faf863a670fd6ce8ca8d7c1af.tar.gz
web-db174993127a8b2faf863a670fd6ce8ca8d7c1af.zip
feat: add onclick links in blog post links
feat: add href for any onclick links/icons chore: rm any remains of old lightgallery fix: show borders between post rows fix: map redefining
Diffstat (limited to 'internal/glightbox/html_renderer.go')
-rw-r--r--internal/glightbox/html_renderer.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/glightbox/html_renderer.go b/internal/glightbox/html_renderer.go
index 3b6a533..43d4790 100644
--- a/internal/glightbox/html_renderer.go
+++ b/internal/glightbox/html_renderer.go
@@ -81,7 +81,7 @@ func (r *GLightboxHTMLRenderer) renderGLightbox(w util.BufWriter, source []byte,
elements = append(elements, fmt.Sprintf(`
<a href="https://f003.backblazeb2.com/file/sayana-photos/full/%s" class="glightbox-%s grid-item grid-item-%s"
data-gallery="gallery-%s" data-title="%s" %s>
- <img src="https://f003.backblazeb2.com/file/sayana-photos/webp-320p/%s.webp" class="rounded-md p-0.5" alt="webp thumbnail" />
+ <img src="https://f003.backblazeb2.com/file/sayana-photos/webp-320p/%s.webp" class="rounded-md p-1" alt="webp thumbnail" />
</a>`, img.URL, galleryID, galleryID, galleryID, dayDate.Format("2006-01-02 15:04:05 -07:00"), dataDescriptionAttribute, imageUrlWithoutExt))
if glightboxDescId != "" {