{{- 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" -}} {{- $paginator = where $paginator "Params.show_in_homepage" "!=" false -}} {{- 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 -}}