« Back to home

Displaying Exif Tags with Hugo

This site is powered by Hugo and therefore statically generated. I post a lot of pictures and like to show the corresponding Exif tags. Up until a few weeks ago, I did this by embedding a JavaScript library that would parse the tags on the client and inject additional information into the DOM.

While that worked fine, it wasn’t the most elegant solution and I wanted to finally utilize Hugo’s capabilities. With version 0.58, it had gained support for Exif processing at build time. It requires the use of page resources and for each image that’s part of the page resources, an Exif object can be received and processed.

Read more »