mirror of
https://github.com/dillonzq/LoveIt.git
synced 2024-11-14 02:46:16 +01:00
f14301c395
* feat: improve configuration * fix: fix partials/footer.html error
24 lines
988 B
HTML
24 lines
988 B
HTML
{{- define "content" -}}
|
|
<div class="page home">
|
|
{{- /* Profile */ -}}
|
|
{{- if ne .Site.Params.home.profile.enable false -}}
|
|
{{- partial "home/profile.html" . -}}
|
|
{{- end -}}
|
|
|
|
{{- /* Posts */ -}}
|
|
{{- if ne .Site.Params.home.posts.enable false -}}
|
|
{{- /* Paginate */ -}}
|
|
{{- $pages := where .Site.RegularPages "Type" "posts" -}}
|
|
{{- if .Site.Params.page.hiddenFromHomePage -}}
|
|
{{- $pages = where $pages "Params.hiddenfromhomepage" false -}}
|
|
{{- else -}}
|
|
{{- $pages = where $pages "Params.hiddenfromhomepage" "!=" true -}}
|
|
{{- end -}}
|
|
{{- $pages = .Site.Params.home.posts.paginate | default .Site.Params.paginate | .Paginate $pages -}}
|
|
{{- range $pages.Pages -}}
|
|
{{- .Render "summary" -}}
|
|
{{- end -}}
|
|
{{- partial "paginator.html" . -}}
|
|
{{- end -}}
|
|
</div>
|
|
{{- end -}}
|