mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-11-24 11:31:37 +01:00
cover: responsive cover: rm forced q100
- lets quality attribute in imaging section - https://gohugo.io/content-management/image-processing/#image-processing-config close #92
This commit is contained in:
parent
e89e7570cd
commit
0d8cb9fd15
@ -13,7 +13,7 @@
|
||||
{{- if (and (in $processableFormats $cover.MediaType.SubType) (ne .Site.Params.cover.responsiveImages false) (eq $prod true)) }}
|
||||
<img srcset="{{- range $size := $sizes -}}
|
||||
{{- if (ge $cover.Width $size) -}}
|
||||
{{ printf "%s %s" (($cover.Resize (printf "%sx q100" $size)).Permalink) (printf "%sw ," $size) -}}
|
||||
{{ printf "%s %s" (($cover.Resize (printf "%sx" $size)).Permalink) (printf "%sw ," $size) -}}
|
||||
{{ end }}
|
||||
{{- end -}}{{$cover.Permalink }} {{printf "%dw" ($cover.Width)}}"
|
||||
sizes="(min-width: 768px) 720px, 100vw" src="{{ $cover.Permalink }}" alt="{{ $alt }}" />
|
||||
|
Loading…
Reference in New Issue
Block a user