{{/* di default, niente immagine */}} {{- $featimg := "#" -}} {{- if .Params.image -}} {{/* se è stata definita un'immagine featured */}} {{- $img := .Page.Resources.GetMatch .Params.image -}} {{- $featimg = $img.RelPermalink -}} {{- else -}} {{- if .Params.featured -}} {{/* se è stata definita un'immagine featured */}} {{- $img := .Page.Resources.GetMatch .Params.featured -}} {{- $featimg = $img.RelPermalink -}} {{- else -}} {{/* altrimenti prendo la prima risorsa immagine disponibile */}} {{- $img := (.Page.Resources.ByType "image").GetMatch "**" -}} {{- if $img -}} {{- $featimg = $img.RelPermalink -}} {{- end -}} {{- end -}} {{- end -}} {{ .Params.image_alt }}

{{ .Title }}

{{ if .Site.Params.show_post_dates | default true }} {{- with .Date }}{{ end }} {{ end }}

{{ with .Description }} {{- . }} {{- else }} {{- .Summary }} {{- end }}