px is more appropriate than rem for this use case

This commit is contained in:
Ari Kalfus
2022-12-03 12:44:14 -05:00
committed by GitHub
parent 2cb88d74e5
commit 7b38dc4602
+1 -1
View File
@@ -9,4 +9,4 @@
{{ $alt := .Get "title" }} {{ $alt := .Get "title" }}
{{ $width := .Get "width" | default "w_auto" }} {{ $width := .Get "width" | default "w_auto" }}
{{ $style := .Get "style" | default "max-width:80%" }} {{ $style := .Get "style" | default "max-width:80%" }}
<img alt="{{ $alt }}" title="{{ $alt }}" data-src="https://res.cloudinary.com/{{ $.Site.Params.cloudinary_cloud_name }}/{{ $width }},c_scale,f_auto,q_auto,dpr_auto{{ $image}}" class="cld-responsive" style="padding-bottom: 1rem; {{ $style }}"> <img alt="{{ $alt }}" title="{{ $alt }}" data-src="https://res.cloudinary.com/{{ $.Site.Params.cloudinary_cloud_name }}/{{ $width }},c_scale,f_auto,q_auto,dpr_auto{{ $image}}" class="cld-responsive" style="padding-bottom: 16px; {{ $style }}">