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