package main import ( "fmt" "git.dev.alexdunmow.com/block/core/blocks" ) // galleryOfArtComponent renders a polaroid-style grid of artworks. templ galleryOfArtComponent(data GalleryData) {
if data.Title != "" {

{ data.Title }

} if len(data.Items) == 0 {
No artworks yet — add one to fill the gallery wall.
} else { }
} // polaroidAlt produces a respectful alt-text that honours the privacy toggle. func polaroidAlt(art GalleryArt, showChildName bool) string { if showChildName && art.ChildName != "" { return fmt.Sprintf("Artwork by %s", art.ChildName) } return "Children's artwork" }