hexojs/hexo-theme-light — pull request #38 by floriancargoet (2014-01-24 11:59:54+00:00)
Title: Do not generate gallery markup if no photos

I think that since the `photos` property has been added to the post model, it is an empty array instead of no array at all.
In the light theme, it generates the markup for the gallery even if it is not needed. I've added a length check.