X-Git-Url: https://git.danix.xyz/?a=blobdiff_plain;f=layouts%2Fshortcodes%2Fimg.html;h=9f537cf183529308fd55f05dae1592fa79165876;hb=HEAD;hp=d4159bee871e91a02541fe336a0cf11da5d9ede3;hpb=857826795354a7f12d4641111a455ceb4267732c;p=theme-danix.xyz.git diff --git a/layouts/shortcodes/img.html b/layouts/shortcodes/img.html index d4159be..9f537cf 100644 --- a/layouts/shortcodes/img.html +++ b/layouts/shortcodes/img.html @@ -14,7 +14,7 @@ for that, and then fade in for the LQIP effect. Feel free to adjust your CSS/SCSS as desired. */}} -{{- $imgClass := "w-full h-auto animate-fade" -}} +{{- $imgClass := "animate-fade" -}} {{- $dataSzes := "(min-width: 1024px) 100vw, 50vw" -}} {{/* Now we'll create the 20-pixel-wide LQIP @@ -27,7 +27,7 @@ $CFPstyle is for use in styling the div's background, as you'll see shortly. */}} -{{- $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 "px; height: " $source.Height "px;" -}} +{{- $CFPstyle := printf "%s%s%s%v%s" "background: url(data:image/jpeg;base64," $LQIP_b64 "); background-size: cover; background-repeat: no-repeat; width: " $source.Width "px;" -}} {{/* Then, we create a 640-pixel-wide JPG of the image. This will serve as the @@ -74,7 +74,8 @@ /> {{ $alt }}