{{ $newres := "360x250 smart" }} {{- $image_src := "" }} {{- $image_alt := "" }} {{- $image_caption := "" }} {{/* immagine di default */}} {{- $image := (resources.Get "/images/placeholder_elenco.png") -}} {{/* priorità maggiore: image_list */}} {{- if .Params.image_list }} {{- $image_src = .Params.image_list.src }} {{- with .Params.image_list.alt }} {{- $image_alt = . }} {{- end }} {{- with .Params.image_list.caption }} {{- $image_caption = . }} {{- end }} {{- end }} {{/* 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 -}} {{ $image_alt }}

{{ .Title }}

{{- with .GetTerms "author" }} {{- range . -}} {{- end }} {{- end }} {{ if .Site.Params.show_post_dates | default true }} {{- with .Date }}{{ end }} {{ end }}

{{ with .Description }} {{- . | plainify | truncate 400 }} {{- else }} {{- .Summary | plainify | truncate 400 }} {{- end }}

{{ partial "tags.html" . }}