LoveIt/layouts/index.html

22 lines
No EOL
795 B
HTML

{{- define "content" -}}
{{- if eq .Site.Params.home_mode "post" -}}
<div class="page">
{{- partial "home/profile.html" . -}}
{{- $paginator := where .Site.RegularPages "Type" "posts" -}}
{{- $paginator = where $paginator "Params.show_in_homepage" "!=" false -}}
{{- with .Site.Params.home_paginate -}}
{{- $paginator = $.Paginate $paginator . -}}
{{- else -}}
{{- $paginator = $.Paginate $paginator -}}
{{- end -}}
{{- range $paginator.Pages -}}
{{- .Render "summary" -}}
{{- end -}}
{{- partial "paginator.html" . -}}
</div>
{{- else -}}
{{- partial "home/profile.html" . -}}
{{- end -}}
{{- end -}}