{{ define "main" }} {{ if (and .Site.Params.profileMode.enabled .IsHome) }} {{- partial "indexProfile.html" . }} {{else}} {{/* if not profileMode */}} {{ $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 }} {{else}} {{- if .Title }} {{ end }} {{ end }} {{ $paginator := .Paginate (where $PageContext.RegularPages "Type" $contentTypeName) }} {{- range $index, $page := $paginator.Pages }} {{- $class := "post-entry" }} {{- if (and $.IsHome (eq $paginator.PageNumber 1) (eq $index 0)) }} {{- if .Site.Params.homeInfoParams }} {{- partial "homeInfo.html" . }} {{else}} {{- $class = "first-entry" }} {{ end }} {{- else if .Data.Term }} {{- $class = "post-entry tag-entry" }} {{- end }}

{{ .Title }} {{- if .Draft }}
  [draft]
{{- end }}

{{if (ne .Site.Params.hideSummary true)}}

{{ .Summary | plainify | htmlUnescape }}...

{{ end }}
{{- end }} {{- if gt $paginator.TotalPages 1 }} {{- end }} {{end}}{{/* end profileMode */}} {{ end }}{{/* end main */}}