GeistHaus
log in · sign up

Responsive and optimized images with Hugo | BryceWray.com

brycewray.com

How to take advantage of the amazingly capable image processing built into this SSG.

3 pages link to this URL
Rebuilding this site

Discusses the ground-up rebuild of this site, using Hugo, and Tailwind CSS, and more.

0 inbound links article en posts Web CC BY 4.0
Responsive image management with Hugo

As a believer in text is king, I store all my content in markdown formatted plain text. You know, like grandpa used to do on punch cards but now with links and more octothorpes. Alongside text, I reference images in said text with a ![description of image](image_file.jpg) snippet. In turn, this ends up as HTML rendered by Hugo for browsers to consume. By default, Joe Public viewing the blog receives that image byte for byte as I saved it even when a much smaller image that looks visibly indistinguishable would do.