X-Git-Url: https://git.danix.xyz/?a=blobdiff_plain;f=layouts%2Fshortcodes%2Fimg.html;fp=layouts%2Fshortcodes%2Fimg.html;h=e93d5aa8604e9ae108a8cf6219daf8c0f98d3438;hb=e4e9378f7e020e83c56d4802c16c67adf388d290;hp=2f0bd67fb313ff58e6e17713b1014e5cf0fb691c;hpb=3adfd28c5a6e567c53b790ca0ab437ccede67b6f;p=theme-danix.xyz.git diff --git a/layouts/shortcodes/img.html b/layouts/shortcodes/img.html index 2f0bd67..e93d5aa 100644 --- a/layouts/shortcodes/img.html +++ b/layouts/shortcodes/img.html @@ -27,7 +27,7 @@ $CFPstyle is for use in styling the div's background, as you'll see shortly. */}} -{{- $CFPstyle := printf "%s%s%s" "background: url(data:image/jpeg;base64," $LQIP_b64 "); background-size: cover; background-repeat: no-repeat;" -}} +{{- $CFPstyle := printf "%s%s%s%v%s%v%s" "background: url(data:image/jpeg;base64," $LQIP_b64 "); background-size: cover; background-repeat: no-repeat; width: " $source.Width "; height: " $source.Height ";" -}} {{/* Then, we create a 640-pixel-wide JPG of the image. This will serve as the