{{ $heading_level := .heading_level | default 3 }} {{ $heading := printf "h%d" $heading_level }} {{ $heading_tag := (dict "open" ((printf "<%s class='post-title' itemprop='headline'>" $heading) | safeHTML) "close" ((printf "" $heading) | safeHTML) ) }}
{{ $highlight := index .posts 0 }} {{ $highlight = site.GetPage (printf "/posts/%s" $highlight)}} {{ $list := .posts }} {{ with $highlight }}
{{ partial "posts/post" (dict "post" . "heading" $heading ) }}
{{ end }} {{ with $list }} {{ $first := true }}
{{ range after 1 . }} {{ with site.GetPage (printf "/posts/%s" .) }}
{{- $title := partial "PrepareHTML" .Title -}} {{ $heading_tag.open }} {{ $title }} {{ $heading_tag.close }} {{ if site.Params.posts.index.show_categories }} {{- partial "posts/categories" . -}} {{ end }} {{ if site.Params.posts.index.show_description }} {{- if (partial "GetTextFromHTML" .Params.summary) -}}

{{ partial "GetTruncateContent" ( dict "text" .Params.summary "length" site.Params.posts.index.truncate_description ) }}

{{- end -}} {{- end -}}
{{ end }} {{ end }}
{{ end }}