2019-08-18 19:36:52 +02:00
|
|
|
{{ define "content" -}}
|
|
|
|
{{ if eq .Site.Params.home_mode "post" -}}
|
2019-08-11 19:36:19 +02:00
|
|
|
<div class="post-warp">
|
2019-08-18 19:36:52 +02:00
|
|
|
{{- partial "home/profile.html" . -}}
|
2019-08-11 19:36:19 +02:00
|
|
|
|
2019-11-20 14:39:04 +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 -}}
|
2019-08-18 19:36:52 +02:00
|
|
|
{{ .Render "summary" -}}
|
|
|
|
{{ end -}}
|
2019-08-11 19:36:19 +02:00
|
|
|
|
2019-09-29 09:56:11 +02:00
|
|
|
{{ partial "paginator.html" . -}}
|
2019-08-11 19:36:19 +02:00
|
|
|
</div>
|
2019-08-18 19:36:52 +02:00
|
|
|
{{- else -}}
|
|
|
|
{{ partial "home/profile.html" . -}}
|
|
|
|
{{ end -}}
|
|
|
|
{{ end }}
|