diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..76ac78e --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,31 @@ +{{ define "main" }} +
+

{{ .Title }}

+

{{ .Description }}

+ {{ if .Site.Params.show_post_dates | default true }} + {{- with .Date }}{{ end }} + {{ end }} + {{ partial "tags.html" . }} +
+ + {{- if or .Params.image }} + + {{- $featimg := "#" -}} + + {{- if .Params.image -}} + {{/* se è stata definita un'immagine featured */}} + {{- $img := .Page.Resources.GetMatch .Params.image -}} + {{- $featimg = $img.RelPermalink -}} + {{- end -}} + + {{- if .Params.featured -}} + {{/* se è stata definita un'immagine featured */}} + {{- $img := .Page.Resources.GetMatch .Params.featured -}} + {{- $featimg = $img.RelPermalink -}} + {{- end -}} + + {{ .Params.image_alt }} + {{ end }} + + {{- .Content }} +{{ end }}