{{- $title := partial "PrepareHTML" .Title -}}
{{ $heading_tag.open }}
{{ $title }}
{{ $heading_tag.close }}
{{ if eq $options.hide_summary false }}
{{- if (partial "GetTextFromHTML" .Params.summary) -}}
{{ if eq $options.hide_image false }}
{{ partial "GetTruncateContent" ( dict "text" .Params.summary "length" site.Params.posts.index.truncate_description ) }}
{{- end -}} {{- 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 -}}