Added front matter based gallery to post template