LoveIt/layouts/index.html

25 lines
988 B
HTML
Raw Normal View History

2020-01-31 11:46:28 +01:00
{{- define "content" -}}
2020-02-13 18:30:33 +01:00
<div class="page home">
{{- /* Profile */ -}}
{{- if ne .Site.Params.home.profile.enable false -}}
2019-08-18 19:36:52 +02:00
{{- partial "home/profile.html" . -}}
{{- end -}}
2019-08-11 19:36:19 +02:00
{{- /* Posts */ -}}
2020-03-03 14:57:30 +01:00
{{- 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 -}}
2020-01-31 11:46:28 +01:00
{{- .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 -}}