forked from Bunteshaus/bunteshaus.de
small fixes
This commit is contained in:
parent
e5e52e98ba
commit
fd92150204
|
@ -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" }}
|
||||
|
|
|
@ -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 -}}
|
||||
|
|
Loading…
Reference in New Issue
Block a user