{{ define "main" }} {{ $isntDefault := not (or (eq (trim $.Site.Params.contentTypeName " ") "posts") (eq (trim $.Site.Params.contentTypeName " ") "")) }} {{ $contentTypeName := cond $isntDefault (string $.Site.Params.contentTypeName) "posts" }} {{ $PageContext := . }} {{ if .IsHome }} {{ $PageContext = .Site }} {{ end }} {{ $paginator := .Paginate (where $PageContext.RegularPages "Type" $contentTypeName) }} {{- if (and $.IsHome (eq $.Site.Params.homeInfoParams.enabled true)) }} {{- partial "homeInfo.html" . }} {{ end }} {{- range $index, $page := $paginator.Pages }} {{- $class := "post-entry" }} {{- if (and $.IsHome (eq $paginator.PageNumber 1) (eq $index 0) (ne $.Site.Params.homeInfoParams.enabled true)) }} {{- $class = "first-entry" }} {{- else if .Data.Term }} {{- $class = "post-entry tag-entry" }} {{- end }} {{ .Title }} {{ .Summary | plainify | htmlUnescape }}... {{- end }} {{- if gt $paginator.TotalPages 1 }} {{- end }} {{ end }}{{/* end main */}}
{{ .Summary | plainify | htmlUnescape }}...