Skip to content

Commit 38fa75e

Browse files
committed
[SITE] change to using resize to avoid logo cut
see london logo on the main page it gets cut off using resize it should resize the image better and avoid any cutting off Signed-off-by: Toshaan Bharvani <toshaan@vantosh.com>
1 parent 0e79bab commit 38fa75e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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)