2024-07-09 21:10:03 +00:00
|
|
|
{{ define "main" }}
|
|
|
|
<header>
|
|
|
|
<h2>{{ .Title }}</h2>
|
|
|
|
<p>{{ .Description }}</p>
|
|
|
|
{{ if .Site.Params.show_post_dates | default true }}
|
|
|
|
{{- with .Date }}<time>{{ . | time.Format ":date_medium" }}</time>{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
{{ partial "tags.html" . }}
|
|
|
|
</header>
|
|
|
|
|
|
|
|
{{- 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 -}}
|
|
|
|
|
2024-07-10 11:30:18 +00:00
|
|
|
<span class="image featured"><img src="{{ $featimg }}" alt="{{ .Params.image_alt }}" /></span>
|
2024-07-09 21:10:03 +00:00
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{- .Content }}
|
|
|
|
{{ end }}
|