If I use Hugo's builtin {{< figure >}} shortcode to embed an image in a page and specify it's width and height (as is often recommended to avoid re-layout after the image is loaded), the theme's CSS messes up the image aspect ratio.
For example, including the following in the page:
{{< figure src="heathrow-checkin.jpg" width="640" height="480"
caption="Passengers queuing for checkin" >}}
{{< figure src="heathrow-checkin.jpg"
caption="Passengers queuing for checkin" >}}
Results in:
The theme's CSS applies max-width: 100% to to limit the width of the images, but this only adjusts the height when it hasn't been set via the HTML attribute.
If I use Hugo's builtin
{{< figure >}}
shortcode to embed an image in a page and specify it's width and height (as is often recommended to avoid re-layout after the image is loaded), the theme's CSS messes up the image aspect ratio.For example, including the following in the page:
Results in:
The theme's CSS applies
max-width: 100%
to to limit the width of the images, but this only adjusts the height when it hasn't been set via the HTML attribute.