I have a shortcode for adding captions to my pictures.
and when I use it in the very first picture (used twice temporarily in website for you to see. it looks like this: Code is here (will change in future)
First one is just regular img code 2nd one is the shortcode. shortcode is smaller.
{{< img src = "/images/fat-thin-me.webp" >}}
{{< image-with-caption src="/images/fat-thin-me.webp" alt="fat and thin" caption="Left: May, 2023, Right: Feb, 2024." >}}
Both of those code are using the same image, however <figure> margin takes spaces, that’s is, the 2nd image rendered width is 100%- margin-left - margin-right. You can check this on Chrome console.
Okay. it works…
Seems there is some type of cache problem on my browser even if I restart the hugo server.
Then there is a cloudflare variable too.
I loaded live and still had the problem in chrome, but firefox (which I don’t use) seemed to show both as the same size now.