forked from BgLUG/bglug.it
Compare commits
No commits in common. "888aaedb58068bb33b6dddb0a92c1a500e51907a" and "e74cc91b8aeedafb036ecd46655847a913dba1ba" have entirely different histories.
888aaedb58
...
e74cc91b8a
@ -9,7 +9,6 @@ theme: hugo-arcana
|
||||
copyright: 2024 © Bergamo Linux Users Group
|
||||
paginate: 20
|
||||
timeout: 60s
|
||||
enableRobotsTXT: true
|
||||
|
||||
params:
|
||||
description: Bergamo Linux Users Group
|
||||
|
@ -11,7 +11,6 @@
|
||||
{{- if or .Params.image .Params.featured }}
|
||||
|
||||
{{- $maxHeight := 600 -}}
|
||||
{{ $rasters := slice "jpeg" "png" }}
|
||||
{{- $img := "#" -}}
|
||||
|
||||
{{- if .Params.image -}}
|
||||
@ -23,14 +22,11 @@
|
||||
{{/* se è stata definita un'immagine featured */}}
|
||||
{{- $img = .Page.Resources.GetMatch .Params.featured -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- $image := $img.Resize (printf "x%d" $maxHeight) -}}
|
||||
|
||||
<span class="image featured">
|
||||
{{- if in $rasters $img.MediaType.SubType -}}
|
||||
{{- $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 }}
|
||||
<img src="{{ $image.RelPermalink }}" alt="{{ .Params.image_alt }}" style="width: {{ $image.Width }}px; max-height: {{ $maxHeight }}px;" />
|
||||
</span>
|
||||
{{ end }}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user