Skip to content

Commit 0b93f2f

Browse files
authored
Merge pull request #15058 from toshywoshy/fill2resize
[SITE] change to using resize to avoid logo cut
2 parents 243fb77 + 9c36d69 commit 0b93f2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

themes/devopsdays-theme/layouts/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@
3434
{{- if ($.Scratch.Get "squarelogofile") -}}
3535
{{- $imagelocation := (printf "events/%s/%s" .name ($.Scratch.Get "squarelogofile")) -}}
3636
{{- $imageresource := resources.Get $imagelocation -}}
37-
{{- $imagefile := $imageresource.Fill "236x236 webp Lanczos q100 Center" -}}
37+
{{- $imagefile := $imageresource.Resize "236x236 webp Lanczos q100 Center" -}}
3838
<a href='{{ (printf "/events/%s" .name) }}'><img src='{{ $imagefile.RelPermalink }}' class="img-fluid" alt="devopsdays {{ .city }}"/></a>
3939
{{- $.Scratch.Set "logo" "set" -}}
4040
{{- end -}}
4141
{{- end -}}
4242
{{- if ne ($.Scratch.Get "logo") "set" -}}
4343
{{- $imagelocation := "img/event-logo-square.png" -}}
4444
{{- $imageresource := resources.Get $imagelocation -}}
45-
{{- $imagefile := $imageresource.Fill "236x236 webp Lanczos q100 Center" -}}
45+
{{- $imagefile := $imageresource.Resize "236x236 webp Lanczos q100 Center" -}}
4646
<a href='{{ (printf "/events/%s" .name) }}'><img src='{{ $imagefile.RelPermalink }}' class="img-fluid" alt="devopsdays {{ .city }}"/></a>
4747
{{- end -}}
4848
<br/>

0 commit comments

Comments
 (0)