LoveIt/layouts/index.html

22 lines
795 B
HTML
Raw Normal View History

2020-01-31 11:46:28 +01:00
{{- define "content" -}}
{{- if eq .Site.Params.home_mode "post" -}}
<div class="page">
2019-08-18 19:36:52 +02:00
{{- partial "home/profile.html" . -}}
2019-08-11 19:36:19 +02:00
2020-01-31 11:46:28 +01:00
{{- $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 -}}
2019-08-11 19:36:19 +02:00
2020-01-31 11:46:28 +01:00
{{- partial "paginator.html" . -}}
2019-08-11 19:36:19 +02:00
</div>
2019-08-18 19:36:52 +02:00
{{- else -}}
2020-01-31 11:46:28 +01:00
{{- partial "home/profile.html" . -}}
{{- end -}}
{{- end -}}