Compare commits
2 Commits
1aacef7869
...
3e313a4cb8
Author | SHA1 | Date | |
---|---|---|---|
3e313a4cb8 | |||
60ec9fc28a |
@ -6,6 +6,8 @@ date: 2006-10-28T18:00:00+02:00
|
|||||||
slug: linux-day-2006-foto
|
slug: linux-day-2006-foto
|
||||||
aliases:
|
aliases:
|
||||||
- /chisiamo/immagini/nggallery/album/linux-day-2006-dalmine
|
- /chisiamo/immagini/nggallery/album/linux-day-2006-dalmine
|
||||||
|
image_list:
|
||||||
|
src: La_truppa.jpg
|
||||||
---
|
---
|
||||||
|
|
||||||
Here are the souvenir photos of the Linux Day 2006!
|
Here are the souvenir photos of the Linux Day 2006!
|
||||||
|
@ -6,6 +6,8 @@ date: 2006-10-28T18:00:00+02:00
|
|||||||
slug: linux-day-2006-foto
|
slug: linux-day-2006-foto
|
||||||
aliases:
|
aliases:
|
||||||
- /chisiamo/immagini/nggallery/album/linux-day-2006-dalmine
|
- /chisiamo/immagini/nggallery/album/linux-day-2006-dalmine
|
||||||
|
image_list:
|
||||||
|
src: La_truppa.jpg
|
||||||
---
|
---
|
||||||
|
|
||||||
Ecco le foto ricordo del Linux Day 2006!
|
Ecco le foto ricordo del Linux Day 2006!
|
||||||
|
@ -6,6 +6,8 @@ date: 2007-10-27T18:00:00+02:00
|
|||||||
slug: linux-day-2007-foto
|
slug: linux-day-2007-foto
|
||||||
aliases:
|
aliases:
|
||||||
- /chisiamo/immagini/nggallery/album/linux-day-2007-dalmine
|
- /chisiamo/immagini/nggallery/album/linux-day-2007-dalmine
|
||||||
|
image_list:
|
||||||
|
src: 15gruppo.jpg
|
||||||
---
|
---
|
||||||
|
|
||||||
Here are the souvenir photos of the Linux Day 2007!
|
Here are the souvenir photos of the Linux Day 2007!
|
||||||
|
@ -6,6 +6,8 @@ date: 2007-10-27T18:00:00+02:00
|
|||||||
slug: linux-day-2007-foto
|
slug: linux-day-2007-foto
|
||||||
aliases:
|
aliases:
|
||||||
- /chisiamo/immagini/nggallery/album/linux-day-2007-dalmine
|
- /chisiamo/immagini/nggallery/album/linux-day-2007-dalmine
|
||||||
|
image_list:
|
||||||
|
src: 15gruppo.jpg
|
||||||
---
|
---
|
||||||
|
|
||||||
Ecco le foto ricordo del Linux Day 2007!
|
Ecco le foto ricordo del Linux Day 2007!
|
||||||
|
@ -6,6 +6,8 @@ date: 2008-10-28T18:53:09+00:00
|
|||||||
slug: linux-day-2008-foto
|
slug: linux-day-2008-foto
|
||||||
aliases:
|
aliases:
|
||||||
- /chisiamo/immagini/nggallery/album/linux-day-2008-dalmine
|
- /chisiamo/immagini/nggallery/album/linux-day-2008-dalmine
|
||||||
|
image_list:
|
||||||
|
src: DSC_5997.jpg
|
||||||
---
|
---
|
||||||
|
|
||||||
Here are the souvenir photos of the Linux Day 2008!
|
Here are the souvenir photos of the Linux Day 2008!
|
||||||
|
@ -6,6 +6,8 @@ date: 2008-10-28T18:53:09+00:00
|
|||||||
slug: linux-day-2008-foto
|
slug: linux-day-2008-foto
|
||||||
aliases:
|
aliases:
|
||||||
- /chisiamo/immagini/nggallery/album/linux-day-2008-dalmine
|
- /chisiamo/immagini/nggallery/album/linux-day-2008-dalmine
|
||||||
|
image_list:
|
||||||
|
src: DSC_5997.jpg
|
||||||
---
|
---
|
||||||
|
|
||||||
Ecco le foto ricordo del Linux Day 2008!
|
Ecco le foto ricordo del Linux Day 2008!
|
||||||
|
@ -6,6 +6,8 @@ date: 2009-10-24T18:00:00+02:00
|
|||||||
slug: linux-day-2009-foto
|
slug: linux-day-2009-foto
|
||||||
aliases:
|
aliases:
|
||||||
- /chisiamo/immagini/nggallery/album/linux-day-2009-dalmine
|
- /chisiamo/immagini/nggallery/album/linux-day-2009-dalmine
|
||||||
|
image_list:
|
||||||
|
src: LinuxDay2009_0127.jpg
|
||||||
---
|
---
|
||||||
|
|
||||||
Here are the souvenir photos of the Linux Day 2009!
|
Here are the souvenir photos of the Linux Day 2009!
|
||||||
|
@ -6,6 +6,8 @@ date: 2009-10-24T18:00:00+02:00
|
|||||||
slug: linux-day-2009-foto
|
slug: linux-day-2009-foto
|
||||||
aliases:
|
aliases:
|
||||||
- /chisiamo/immagini/nggallery/album/linux-day-2009-dalmine
|
- /chisiamo/immagini/nggallery/album/linux-day-2009-dalmine
|
||||||
|
image_list:
|
||||||
|
src: LinuxDay2009_0127.jpg
|
||||||
---
|
---
|
||||||
|
|
||||||
Ecco le foto ricordo del Linux Day 2009!
|
Ecco le foto ricordo del Linux Day 2009!
|
||||||
|
@ -4,6 +4,8 @@ author: ermanno
|
|||||||
type: post
|
type: post
|
||||||
date: 2016-10-23T20:25:29+00:00
|
date: 2016-10-23T20:25:29+00:00
|
||||||
slug: linux-day-2016-foto
|
slug: linux-day-2016-foto
|
||||||
|
image_list:
|
||||||
|
src: 2016_1022_16150700.jpg
|
||||||
---
|
---
|
||||||
|
|
||||||
Here are the souvenir photos of the Linux Day 2016!
|
Here are the souvenir photos of the Linux Day 2016!
|
||||||
|
@ -4,6 +4,8 @@ author: ermanno
|
|||||||
type: post
|
type: post
|
||||||
date: 2016-10-23T20:25:29+00:00
|
date: 2016-10-23T20:25:29+00:00
|
||||||
slug: linux-day-2016-foto
|
slug: linux-day-2016-foto
|
||||||
|
image_list:
|
||||||
|
src: 2016_1022_16150700.jpg
|
||||||
---
|
---
|
||||||
|
|
||||||
Ecco le foto ricordo del Linux Day 2016!
|
Ecco le foto ricordo del Linux Day 2016!
|
||||||
|
@ -4,6 +4,8 @@ author: omarl
|
|||||||
type: post
|
type: post
|
||||||
date: 2024-10-31T20:25:29+00:00
|
date: 2024-10-31T20:25:29+00:00
|
||||||
slug: linux-day-2024-foto
|
slug: linux-day-2024-foto
|
||||||
|
image_list:
|
||||||
|
src: IMG_20241026_113926.jpg
|
||||||
---
|
---
|
||||||
|
|
||||||
Here are the souvenir photos of the Linux Day 2024!
|
Here are the souvenir photos of the Linux Day 2024!
|
||||||
|
@ -4,6 +4,8 @@ author: omarl
|
|||||||
type: post
|
type: post
|
||||||
date: 2024-10-31T20:25:29+00:00
|
date: 2024-10-31T20:25:29+00:00
|
||||||
slug: linux-day-2024-foto
|
slug: linux-day-2024-foto
|
||||||
|
image_list:
|
||||||
|
src: IMG_20241026_113926.jpg
|
||||||
---
|
---
|
||||||
|
|
||||||
Ecco le foto ricordo del Linux Day 2024!
|
Ecco le foto ricordo del Linux Day 2024!
|
||||||
|
@ -1,41 +1,52 @@
|
|||||||
<div class="box post">
|
<div class="box post">
|
||||||
|
|
||||||
{{ $rasters := slice "jpeg" "png" }}
|
|
||||||
{{ $newres := "360x250 smart" }}
|
{{ $newres := "360x250 smart" }}
|
||||||
|
|
||||||
|
{{- $image_src := "" }}
|
||||||
|
{{- $image_alt := "" }}
|
||||||
|
{{- $image_caption := "" }}
|
||||||
{{/* immagine di default */}}
|
{{/* immagine di default */}}
|
||||||
{{- $featimg := (resources.Get "/images/placeholder_elenco.png").RelPermalink -}}
|
{{- $image := (resources.Get "/images/placeholder_elenco.png") -}}
|
||||||
|
|
||||||
{{- if .Params.image -}}
|
{{/* priorità maggiore: image_list */}}
|
||||||
{{/* se è stata definita un'immagine featured */}}
|
{{- if .Params.image_list }}
|
||||||
{{- $img := .Page.Resources.GetMatch .Params.image -}}
|
{{- $image_src = .Params.image_list.src }}
|
||||||
{{- if $img -}}
|
{{- with .Params.image_list.alt }}
|
||||||
{{- if in $rasters $img.MediaType.SubType -}}
|
{{- $image_alt = . }}
|
||||||
{{- $img = $img.Fill $newres -}}
|
{{- end }}
|
||||||
{{ end }}
|
{{- with .Params.image_list.caption }}
|
||||||
{{- $featimg = $img.RelPermalink -}}
|
{{- $image_caption = . }}
|
||||||
{{- end -}}
|
{{- end }}
|
||||||
{{- else if .Params.featured -}}
|
{{- end }}
|
||||||
{{/* se è stata definita un'immagine featured */}}
|
|
||||||
{{- $img := .Page.Resources.GetMatch .Params.featured -}}
|
|
||||||
{{- if $img -}}
|
|
||||||
{{- if in $rasters $img.MediaType.SubType -}}
|
|
||||||
{{- $img = $img.Fill $newres -}}
|
|
||||||
{{ end }}
|
|
||||||
{{- $featimg = $img.RelPermalink -}}
|
|
||||||
{{- end -}}
|
|
||||||
{{- else -}}
|
|
||||||
{{/* altrimenti prendo la prima risorsa immagine disponibile */}}
|
|
||||||
{{- $img := (.Page.Resources.ByType "image").GetMatch "**" -}}
|
|
||||||
{{- if $img -}}
|
|
||||||
{{- if in $rasters $img.MediaType.SubType -}}
|
|
||||||
{{- $img = $img.Fill $newres -}}
|
|
||||||
{{ end }}
|
|
||||||
{{- $featimg = $img.RelPermalink -}}
|
|
||||||
{{- end -}}
|
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
<a href="{{ .RelPermalink }}" class="image left"><img src="{{ $featimg }}" alt="{{ .Params.image_alt }}" /></a>
|
{{/* in alternativa: image_post */}}
|
||||||
|
{{- if and (not $image_src) .Params.image_post }}
|
||||||
|
{{- $image_src = .Params.image_post.src }}
|
||||||
|
{{- with .Params.image_post.alt }}
|
||||||
|
{{- $image_alt = . }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Params.image_post.caption }}
|
||||||
|
{{- $image_caption = . }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/* in alternativa uso il metodo vecchio */}}
|
||||||
|
{{- if and (not $image_src) .Params.image }}
|
||||||
|
{{- $image_src = .Params.image }}
|
||||||
|
{{- with .Params.image_alt }}
|
||||||
|
{{- $image_alt = . }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Params.image_caption }}
|
||||||
|
{{- $image_caption = . }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{- if $image_src }}
|
||||||
|
{{- $image = .Page.Resources.GetMatch $image_src }}
|
||||||
|
{{- end}}
|
||||||
|
|
||||||
|
{{- $image = $image.Fill $newres -}}
|
||||||
|
|
||||||
|
<a href="{{ .RelPermalink }}" class="image left"><img src="{{ $image.RelPermalink }}" alt="{{ $image_alt }}" /></a>
|
||||||
<div class="inner">
|
<div class="inner">
|
||||||
<h3><a href="{{ .RelPermalink }}">{{ .Title }}</a></h3>
|
<h3><a href="{{ .RelPermalink }}">{{ .Title }}</a></h3>
|
||||||
|
|
||||||
|
@ -23,34 +23,44 @@
|
|||||||
{{ partial "tags.html" . }}
|
{{ partial "tags.html" . }}
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
{{- if or .Params.image .Params.featured }}
|
{{- $image_src := "" }}
|
||||||
|
{{- $image_alt := "" }}
|
||||||
|
{{- $image_caption := "" }}
|
||||||
|
|
||||||
|
{{/* priorità maggiore: image_post */}}
|
||||||
|
{{- if .Params.image_post }}
|
||||||
|
{{- $image_src = .Params.image_post.src }}
|
||||||
|
{{- with .Params.image_post.alt }}
|
||||||
|
{{- $image_alt = . }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Params.image_post.caption }}
|
||||||
|
{{- $image_caption = . }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/* in alternativa uso il metodo vecchio */}}
|
||||||
|
{{- if and (not $image_src) .Params.image }}
|
||||||
|
{{- $image_src = .Params.image }}
|
||||||
|
{{- with .Params.image_alt }}
|
||||||
|
{{- $image_alt = . }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Params.image_caption }}
|
||||||
|
{{- $image_caption = . }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{- if $image_src }}
|
||||||
|
{{- $image := .Page.Resources.GetMatch $image_src }}
|
||||||
{{- $maxHeight := 600 -}}
|
{{- $maxHeight := 600 -}}
|
||||||
{{- $ratio := 2.33 -}}
|
{{- $ratio := 2.33 -}}
|
||||||
{{ $rasters := slice "jpeg" "png" }}
|
|
||||||
{{- $img := "#" -}}
|
|
||||||
|
|
||||||
{{- if .Params.image -}}
|
|
||||||
{{/* se è stata definita un'immagine featured */}}
|
|
||||||
{{- $img = .Page.Resources.GetMatch .Params.image -}}
|
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
{{- if .Params.featured -}}
|
|
||||||
{{/* se è stata definita un'immagine featured */}}
|
|
||||||
{{- $img = .Page.Resources.GetMatch .Params.featured -}}
|
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
<span class="image featured"><figure>
|
<span class="image featured"><figure>
|
||||||
{{- if in $rasters $img.MediaType.SubType -}}
|
{{- if gt $image.Height $maxHeight -}}
|
||||||
{{- if gt $img.Height $maxHeight -}}
|
{{- $image = $image.Resize (printf "x%d webp q50" $maxHeight) -}}
|
||||||
{{- $img = $img.Resize (printf "x%d webp q50" $maxHeight) -}}
|
|
||||||
{{- end -}}
|
|
||||||
<img src="{{ $img.RelPermalink }}" alt="{{ .Params.image_alt }}" {{- if ge (mul $img.Height $ratio) $img.Width -}}style="width: auto;" {{- end -}}/>
|
|
||||||
{{ else }}
|
|
||||||
<img src="{{ $img.RelPermalink }}" alt="{{ .Params.image_alt }}" />
|
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- with .Params.image_caption -}}
|
<img src="{{ $image.RelPermalink }}" alt="{{ $image_alt }}" {{- if ge (mul $image.Height $ratio) $image.Width -}}style="width: auto;" {{- end -}}/>
|
||||||
<figcaption style="max-width: {{- $img.Width -}}px;">{{- . | markdownify -}}</figcaption>
|
{{- with $image_caption -}}
|
||||||
|
<figcaption style="max-width: {{- $image.Width -}}px;">{{- . | markdownify -}}</figcaption>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
</figure></span>
|
</figure></span>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@ -1,42 +1,53 @@
|
|||||||
<section>
|
<section>
|
||||||
<div class="box post">
|
<div class="box post">
|
||||||
|
{{ $newres := "360x250 webp q50 smart" }}
|
||||||
|
|
||||||
{{ $rasters := slice "jpeg" "png" }}
|
{{- $image_src := "" }}
|
||||||
{{ $newres := "360x250 smart" }}
|
{{- $image_alt := "" }}
|
||||||
|
{{- $image_caption := "" }}
|
||||||
{{/* immagine di default */}}
|
{{/* immagine di default */}}
|
||||||
{{- $featimg := (resources.Get "/images/placeholder_autore.png").RelPermalink -}}
|
{{- $image := (resources.Get "/images/placeholder_autore.png") -}}
|
||||||
|
|
||||||
{{- if .Params.image -}}
|
{{/* priorità maggiore: image_list */}}
|
||||||
{{/* se è stata definita un'immagine featured */}}
|
{{- if .Params.image_list }}
|
||||||
{{- $img := .Page.Resources.GetMatch .Params.image -}}
|
{{- $image_src = .Params.image_list.src }}
|
||||||
{{- if $img -}}
|
{{- with .Params.image_list.alt }}
|
||||||
{{- if in $rasters $img.MediaType.SubType -}}
|
{{- $image_alt = . }}
|
||||||
{{- $img = $img.Fill $newres -}}
|
{{- end }}
|
||||||
{{ end }}
|
{{- with .Params.image_list.caption }}
|
||||||
{{- $featimg = $img.RelPermalink -}}
|
{{- $image_caption = . }}
|
||||||
{{- end -}}
|
{{- end }}
|
||||||
{{- else if .Params.featured -}}
|
{{- end }}
|
||||||
{{/* se è stata definita un'immagine featured */}}
|
|
||||||
{{- $img := .Page.Resources.GetMatch .Params.featured -}}
|
|
||||||
{{- if $img -}}
|
|
||||||
{{- if in $rasters $img.MediaType.SubType -}}
|
|
||||||
{{- $img = $img.Fill $newres -}}
|
|
||||||
{{ end }}
|
|
||||||
{{- $featimg = $img.RelPermalink -}}
|
|
||||||
{{- end -}}
|
|
||||||
{{- else -}}
|
|
||||||
{{/* altrimenti prendo la prima risorsa immagine disponibile */}}
|
|
||||||
{{- $img := (.Page.Resources.ByType "image").GetMatch "**" -}}
|
|
||||||
{{- if $img -}}
|
|
||||||
{{- if in $rasters $img.MediaType.SubType -}}
|
|
||||||
{{- $img = $img.Fill $newres -}}
|
|
||||||
{{ end }}
|
|
||||||
{{- $featimg = $img.RelPermalink -}}
|
|
||||||
{{- end -}}
|
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
<a href="{{ .RelPermalink }}" class="image left"><img src="{{ $featimg }}" alt="{{ .Params.image_alt }}" /></a>
|
{{/* in alternativa: image_post */}}
|
||||||
|
{{- if and (not $image_src) .Params.image_post }}
|
||||||
|
{{- $image_src = .Params.image_post.src }}
|
||||||
|
{{- with .Params.image_post.alt }}
|
||||||
|
{{- $image_alt = . }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Params.image_post.caption }}
|
||||||
|
{{- $image_caption = . }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/* in alternativa uso il metodo vecchio */}}
|
||||||
|
{{- if and (not $image_src) .Params.image }}
|
||||||
|
{{- $image_src = .Params.image }}
|
||||||
|
{{- with .Params.image_alt }}
|
||||||
|
{{- $image_alt = . }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Params.image_caption }}
|
||||||
|
{{- $image_caption = . }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{- if $image_src }}
|
||||||
|
{{- $image = .Page.Resources.GetMatch $image_src }}
|
||||||
|
{{- end}}
|
||||||
|
|
||||||
|
{{- $image = $image.Fill $newres -}}
|
||||||
|
|
||||||
|
<a href="{{ .RelPermalink }}" class="image left"><img src="{{ $image.RelPermalink }}" alt="{{ $image_alt }}" /></a>
|
||||||
<div class="inner">
|
<div class="inner">
|
||||||
<h3><a href="{{ .RelPermalink }}">{{ .Title }}</a></h3>
|
<h3><a href="{{ .RelPermalink }}">{{ .Title }}</a></h3>
|
||||||
{{ if .Site.Params.show_post_dates | default true }}
|
{{ if .Site.Params.show_post_dates | default true }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user