Adding a Gallery

Testing out the gallery from here. It is pretty simple to setup once you realize that it is using page bundles.

I did hit a few snags though:

  • It will leak javascript into the summary if it is within the first 70 words of the post. You can force the summary break by using the the <!--more--> markup.
  • The layout for the post is using page bundles with the post in a new directory. The post text goes into index.md, and the images go into an images/ directory next to the index.md
  • On my system hugo identifies my images as jpeg not jpg so I had to add that to the gallery.html.
  • The EXIF description wasn't showing up – I had to set the text color to white in the swipebox css files.

You can view these fixes here on GitHub