1 2 3
<div class="gallery{{ with .Get "class" }} {{ . }}{{ end }}"> {{ .Page.RenderString .Inner }} </div>