publish: Add gallery to single pages (if set)

generated from commit 5e0fc907fc617596a8df4ba802c2a01203f359a0