Compare commits

..

No commits in common. "888aaedb58068bb33b6dddb0a92c1a500e51907a" and "e74cc91b8aeedafb036ecd46655847a913dba1ba" have entirely different histories.

2 changed files with 3 additions and 8 deletions

View File

@ -9,7 +9,6 @@ theme: hugo-arcana
copyright: 2024 © Bergamo Linux Users Group copyright: 2024 © Bergamo Linux Users Group
paginate: 20 paginate: 20
timeout: 60s timeout: 60s
enableRobotsTXT: true
params: params:
description: Bergamo Linux Users Group description: Bergamo Linux Users Group

View File

@ -11,7 +11,6 @@
{{- if or .Params.image .Params.featured }} {{- if or .Params.image .Params.featured }}
{{- $maxHeight := 600 -}} {{- $maxHeight := 600 -}}
{{ $rasters := slice "jpeg" "png" }}
{{- $img := "#" -}} {{- $img := "#" -}}
{{- if .Params.image -}} {{- if .Params.image -}}
@ -24,13 +23,10 @@
{{- $img = .Page.Resources.GetMatch .Params.featured -}} {{- $img = .Page.Resources.GetMatch .Params.featured -}}
{{- end -}} {{- end -}}
{{- $image := $img.Resize (printf "x%d" $maxHeight) -}}
<span class="image featured"> <span class="image featured">
{{- if in $rasters $img.MediaType.SubType -}} <img src="{{ $image.RelPermalink }}" alt="{{ .Params.image_alt }}" style="width: {{ $image.Width }}px; max-height: {{ $maxHeight }}px;" />
{{- $img = $img.Resize (printf "x%d" $maxHeight) -}}
<img src="{{ $img.RelPermalink }}" alt="{{ .Params.image_alt }}" style="width: {{ $img.Width }}px; max-height: {{ $maxHeight }}px;" />
{{ else }}
<img src="{{ $img.RelPermalink }}" alt="{{ .Params.image_alt }}" style="max-height: {{ $maxHeight }}px;" />
{{ end }}
</span> </span>
{{ end }} {{ end }}