mirror of
https://github.com/dillonzq/LoveIt.git
synced 2024-11-14 19:06:16 +01:00
27 lines
No EOL
965 B
HTML
27 lines
No EOL
965 B
HTML
{{- define "content" -}}
|
|
{{- /* Home mode [post] */ -}}
|
|
{{- if eq .Site.Params.home_mode "post" -}}
|
|
<div class="page">
|
|
{{- /* Profile */ -}}
|
|
{{- partial "home/profile.html" . -}}
|
|
|
|
{{- /* Paginate */ -}}
|
|
{{- $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 -}}
|
|
{{- partial "paginator.html" . -}}
|
|
</div>
|
|
|
|
{{- /* Home mode [other] */ -}}
|
|
{{- else -}}
|
|
{{- /* Profile */ -}}
|
|
{{- partial "home/profile.html" . -}}
|
|
{{- end -}}
|
|
{{- end -}} |