{{- define "title" -}} {{- .Site.Title -}} {{- if .Site.Params.index_with_subtitle | and .Site.Params.header.subtitle.name -}} {{- printf " - %v" .Site.Params.header.subtitle.name -}} {{- end -}} {{- end -}} {{- define "content" -}} {{- $profile := .Site.Params.home.profile -}} {{- $posts := .Site.Params.home.posts -}} {{- $pages := slice -}} {{- /* Paginate calculation */ -}} {{- if ne $posts.enable false -}} {{- $pages = .Site.Store.Get "mainSectionPages" -}} {{- if .Site.Params.hidden_from_home_page -}} {{- $pages = where $pages "Params.hidden_from_home_page" false -}} {{- else -}} {{- $pages = where $pages "Params.hidden_from_home_page" "!=" true -}} {{- end -}} {{- with $posts.paginate | default .Site.Params.paginate -}} {{- $pages = $.Paginate $pages . -}} {{- else -}} {{- $pages = .Paginate $pages -}} {{- end -}} {{- end -}}