{{- $title := partial "PrepareHTML" .Title -}}
{{ $heading_tag.open }}
{{ $title }}
{{ $heading_tag.close }}
{{ if $options.summary }}
{{- if (partial "GetTextFromHTML" .Params.summary) -}}
{{ if $options.image }}
{{ partial "GetTruncateContent" ( dict "text" .Params.summary "length" site.Params.posts.index.truncate_description ) }}
{{- end -}} {{- end -}} {{ if and .Params.contents_reading_time $options.reading_time }} {{ i18n "posts.reading_time" }} : {{ partial "GetTextFromHTML" .Params.contents_reading_time.text }} {{ end }}
{{- if .Params.image -}}
{{- partial "commons/image.html"
(dict
"image" .Params.image
"sizes" site.Params.image_sizes.sections.posts.item
) -}}
{{- else -}}
{{- partial "commons/image-default.html" "posts" -}}
{{- end -}}
{{- end -}}