Only add the link when the gallery has output. See #5