package templates import ( "fmt" "time" "technical.kiwi/website/internal/gallery" ) templ GalleryGrid(images []gallery.Image) { if len(images) == 0 { } else { for _, img := range images { } } } templ ImageModal(img gallery.Image, prevPath, nextPath string) { } func formatDate(t time.Time) string { if t.IsZero() { return "" } return t.Format("Jan 2006") } func modalAriaLabel(img gallery.Image) string { if img.IsVideo { return "Video viewer" } return "Image viewer" } func modalCaption(img gallery.Image) string { if img.Collection != "" { return img.Collection + " — " + formatDate(img.Date) } if img.Album != "" { return gallery.AlbumLabel(img.Album) + " — " + formatDate(img.Date) } return formatDate(img.Date) }