mirror of
https://github.com/dillonzq/LoveIt.git
synced 2024-11-26 08:38:37 +01:00
24 lines
906 B
HTML
24 lines
906 B
HTML
{{- define "content" -}}
|
|
<div class="page home">
|
|
{{- /* Profile */ -}}
|
|
{{- if .Site.Params.home.profile.enable -}}
|
|
{{- partial "home/profile.html" . -}}
|
|
{{- end -}}
|
|
|
|
{{- /* Posts */ -}}
|
|
{{- if .Site.Params.home.posts.enable -}}
|
|
{{- /* Paginate */ -}}
|
|
{{- $paginator := where .Site.RegularPages "Type" "posts" -}}
|
|
{{- $paginator = where $paginator "Params.show_in_homepage" "!=" false -}}
|
|
{{- with .Site.Params.home.posts.paginate -}}
|
|
{{- $paginator = $.Paginate $paginator . -}}
|
|
{{- else -}}
|
|
{{- $paginator = $.Paginate $paginator -}}
|
|
{{- end -}}
|
|
{{- range $paginator.Pages -}}
|
|
{{- .Render "summary" -}}
|
|
{{- end -}}
|
|
{{- partial "paginator.html" . -}}
|
|
{{- end -}}
|
|
</div>
|
|
{{- end -}}
|