{{- define "content" -}}
{{- /* Profile */ -}} {{- if .Site.Params.home.profile.enable -}} {{- partial "home/profile.html" . -}} {{- end -}} {{- /* Posts */ -}} {{- if .Site.Params.home.posts.enable -}} {{- /* Paginate */ -}} {{- $paginator := where .Site.RegularPages "Type" "posts" -}} {{- if ne .Site.Params.home.posts.mode.defaultHiddenFromHomePage false -}} {{- $paginator = where $paginator "Params.hiddenfromhomepage" "!=" true -}} {{- else -}} {{- $paginator = where $paginator "Params.hiddenfromhomepage" false -}} {{- end -}} {{- with .Site.Params.home.posts.paginate -}} {{- $paginator = $.Paginate $paginator . -}} {{- else -}} {{- $paginator = $.Paginate $paginator -}} {{- end -}} {{- range $paginator.Pages -}} {{- .Render "summary" -}} {{- end -}} {{- partial "paginator.html" . -}} {{- end -}}
{{- end -}}