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
|
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
|
||||||
|
@ -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 -}}
|
||||||
@ -23,14 +22,11 @@
|
|||||||
{{/* se è stata definita un'immagine featured */}}
|
{{/* se è stata definita un'immagine featured */}}
|
||||||
{{- $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 }}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user