I’m not at my work desk so cannot test, but how about something like this?
{{ $height := mul $confg.Height 1.0 }}
style=“padding-bottom:{{mul (div $height $config.Width) 100}}%;
The attempt with this intermediate height variable is to get a float variable with the image height, instead of having to use the integer variable with the division operation.
Might not work but just an idea. ![]()