{{- $title := partial "PrepareHTML" .Title -}}
{{ if and $options.subtitle .Params.subtitle }}
{{ end }}
{{ $heading_tag.open }}
{{ $title }}
{{ $heading_tag.close }}
{{ if and $options.subtitle .Params.subtitle }}
{{ if $options.image }}
{{ partial "PrepareHTML" .Params.subtitle }}
{{ end }} {{ if and $options.subtitle .Params.subtitle }} {{ end }} {{ if and $options.summary .Params.summary }}
{{ partial "GetRichSummary" ( dict
"summary" .Params.summary
"kind" "posts"
)}}
{{- 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 -}}