small fixes

This commit is contained in:
teldra 2022-07-08 16:02:35 +02:00
parent e5e52e98ba
commit fd92150204
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@
{{ if and $img (ne $banner false) }}
{{ $tiny := ($img.Resize "640x q50") }}
{{ $small := ($img.Resize "768x q50") }}
{{ $medium := ($img.Resize "10240x q50") }}
{{ $medium := ($img.Resize "1024x q50") }}
{{ $large := ($img.Resize "1366x q50") }}
<div class="banner b" style="background-image: url({{- $img.Permalink -}});">
{{ if eq hugo.Environment "development" }}

View File

@ -157,7 +157,7 @@
{{ $i := (.Resources.GetMatch $image) }}
{{ $tiny := ($i.Resize "640x q90") }}
{{ $small := ($i.Resize "768x q90") }}
{{ $medium := ($i.Resize "10240x q90") }}
{{ $medium := ($i.Resize "1024x q90") }}
{{ $large := ($i.Resize "1366x q90") }}
<img loading="lazy" srcset="{{- with $tiny.RelPermalink -}}{{.}} 640w{{- end -}}
{{- with $small.RelPermalink -}}, {{.}} 768w{{- end -}}