Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions themes/devopsdays-theme/layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@
{{- if ($.Scratch.Get "squarelogofile") -}}
{{- $imagelocation := (printf "events/%s/%s" .name ($.Scratch.Get "squarelogofile")) -}}
{{- $imageresource := resources.Get $imagelocation -}}
{{- $imagefile := $imageresource.Fill "236x236 webp Lanczos q100 Center" -}}
{{- $imagefile := $imageresource.Resize "236x236 webp Lanczos q100 Center" -}}
<a href='{{ (printf "/events/%s" .name) }}'><img src='{{ $imagefile.RelPermalink }}' class="img-fluid" alt="devopsdays {{ .city }}"/></a>
{{- $.Scratch.Set "logo" "set" -}}
{{- end -}}
{{- end -}}
{{- if ne ($.Scratch.Get "logo") "set" -}}
{{- $imagelocation := "img/event-logo-square.png" -}}
{{- $imageresource := resources.Get $imagelocation -}}
{{- $imagefile := $imageresource.Fill "236x236 webp Lanczos q100 Center" -}}
{{- $imagefile := $imageresource.Resize "236x236 webp Lanczos q100 Center" -}}
<a href='{{ (printf "/events/%s" .name) }}'><img src='{{ $imagefile.RelPermalink }}' class="img-fluid" alt="devopsdays {{ .city }}"/></a>
{{- end -}}
<br/>
Expand Down
Loading