File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
themes/devopsdays-theme/layouts Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 34
34
{{- if ($.Scratch.Get "squarelogofile") -}}
35
35
{{- $imagelocation := (printf "events/%s/%s" .name ($.Scratch.Get "squarelogofile")) -}}
36
36
{{- $imageresource := resources.Get $imagelocation -}}
37
- {{- $imagefile := $imageresource.Fill "236x236 webp Lanczos q100 Center" -}}
37
+ {{- $imagefile := $imageresource.Resize "236x236 webp Lanczos q100 Center" -}}
38
38
< a href ='{{ (printf "/events/%s" .name) }} '> < img src ='{{ $imagefile.RelPermalink }} ' class ="img-fluid " alt ="devopsdays {{ .city }} "/> </ a >
39
39
{{- $.Scratch.Set "logo" "set" -}}
40
40
{{- end -}}
41
41
{{- end -}}
42
42
{{- if ne ($.Scratch.Get "logo") "set" -}}
43
43
{{- $imagelocation := "img/event-logo-square.png" -}}
44
44
{{- $imageresource := resources.Get $imagelocation -}}
45
- {{- $imagefile := $imageresource.Fill "236x236 webp Lanczos q100 Center" -}}
45
+ {{- $imagefile := $imageresource.Resize "236x236 webp Lanczos q100 Center" -}}
46
46
< a href ='{{ (printf "/events/%s" .name) }} '> < img src ='{{ $imagefile.RelPermalink }} ' class ="img-fluid " alt ="devopsdays {{ .city }} "/> </ a >
47
47
{{- end -}}
48
48
< br />
You can’t perform that action at this time.
0 commit comments