diff options
| author | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2020-11-29 09:39:57 +0530 |
|---|---|---|
| committer | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2020-11-29 09:39:57 +0530 |
| commit | 0d8cb9fd157532641940338cea4e90972eccf8d6 (patch) | |
| tree | 2e87021e5da82f351f87c8687cd46797679615be | |
| parent | e89e7570cdedc7c180a969d98499194a44864a9c (diff) | |
cover: responsive cover: rm forced q100
- lets quality attribute in imaging section
- https://gohugo.io/content-management/image-processing/#image-processing-config
close #92
| -rw-r--r-- | layouts/partials/cover.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/cover.html b/layouts/partials/cover.html index c1861cf..d44581b 100644 --- a/layouts/partials/cover.html +++ b/layouts/partials/cover.html @@ -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 }}" /> |
