2020-01-31 11:46:28 +01:00
|
|
|
{{- define "content" -}}
|
2020-02-13 18:30:33 +01:00
|
|
|
<div class="page home">
|
2020-02-16 19:19:55 +01:00
|
|
|
{{- /* Profile */ -}}
|
|
|
|
{{- if .Site.Params.home.profile.enable -}}
|
2019-08-18 19:36:52 +02:00
|
|
|
{{- partial "home/profile.html" . -}}
|
2020-02-16 19:19:55 +01:00
|
|
|
{{- end -}}
|
2019-08-11 19:36:19 +02:00
|
|
|
|
2020-02-16 19:19:55 +01:00
|
|
|
{{- /* Posts */ -}}
|
|
|
|
{{- if .Site.Params.home.posts.enable -}}
|
2020-02-03 11:38:10 +01:00
|
|
|
{{- /* Paginate */ -}}
|
2020-01-31 11:46:28 +01:00
|
|
|
{{- $paginator := where .Site.RegularPages "Type" "posts" -}}
|
|
|
|
{{- $paginator = where $paginator "Params.show_in_homepage" "!=" false -}}
|
2020-02-16 19:19:55 +01:00
|
|
|
{{- with .Site.Params.home.posts.paginate -}}
|
2020-01-31 11:46:28 +01:00
|
|
|
{{- $paginator = $.Paginate $paginator . -}}
|
|
|
|
{{- else -}}
|
|
|
|
{{- $paginator = $.Paginate $paginator -}}
|
|
|
|
{{- end -}}
|
|
|
|
{{- range $paginator.Pages -}}
|
|
|
|
{{- .Render "summary" -}}
|
|
|
|
{{- end -}}
|
|
|
|
{{- partial "paginator.html" . -}}
|
2020-02-13 18:30:33 +01:00
|
|
|
{{- end -}}
|
|
|
|
</div>
|
2020-02-06 17:10:00 +01:00
|
|
|
{{- end -}}
|