{{ partial "GetTruncateContent" ( dict "text" .Params.summary "length" site.Params.posts.index.truncate_description ) }}
{{- end -}} {{- end -}} {{ if or $options.author $options.date $options.reading_time }} {{ end }}{{ $post := .post }} {{ if .params }} {{ $post = site.GetPage (printf "/posts/%s" .params )}} {{ end }} {{ $direction := "" }} {{ $heading := .heading | default "h2" }} {{ $heading_tag := (dict "open" ((printf "<%s class='post-title' itemprop='headline'>" $heading) | safeHTML) "close" ((printf "%s>" $heading) | safeHTML) ) }} {{ $index := .index }} {{ $options := .options }} {{ $alternate := .alternate }} {{ $is_carousel := .is_carousel }} {{ $index := .index }} {{ $role := .role }} {{ with $post }} {{ $post_class := "post" }} {{ $reading_time := .Params.contents_reading_time }} {{ if and .Params.image $options.image }} {{ $direction = partial "GetImageDirection" .Params.image }} {{ $post_class = printf "%s %s" $post_class $direction }} {{ else }} {{ $post_class = printf "%s %s" $post_class "without-image" }} {{ end }} {{ if $is_carousel }}
{{ partial "GetTruncateContent" ( dict "text" .Params.summary "length" site.Params.posts.index.truncate_description ) }}
{{- end -}} {{- end -}} {{ if or $options.author $options.date $options.reading_time }} {{ end }}