{{- define "content" -}} {{- $params := .Scratch.Get "params" -}}
{{- /* Profile */ -}} {{- if ne .Site.Params.home.profile.enable false -}} {{- partial "home/profile.html" . -}} {{- end -}} {{- /* Content */ -}} {{- if .Content -}}
{{- dict "content" .Content "ruby" $params.ruby "fraction" $params.fraction "fontawesome" $params.fontawesome | partial "function/content.html" | safeHTML -}}
{{- end -}} {{- /* Posts */ -}} {{- if ne .Site.Params.home.posts.enable false | and .Site.RegularPages -}} {{- /* Paginate */ -}} {{- $pages := where .Site.RegularPages "Type" "posts" -}} {{- if .Site.Params.page.hiddenFromHomePage -}} {{- $pages = where $pages "Params.hiddenfromhomepage" false -}} {{- else -}} {{- $pages = where $pages "Params.hiddenfromhomepage" "!=" true -}} {{- end -}} {{- with .Site.Params.home.posts.paginate | default .Site.Params.paginate -}} {{- $pages = $.Paginate $pages . -}} {{- else -}} {{- $pages = .Paginate $pages -}} {{- end -}} {{- range $pages.Pages -}} {{- .Render "summary" -}} {{- end -}} {{- partial "paginator.html" . -}} {{- end -}}
{{- end -}}