LoveIt/layouts/index.html

22 lines
783 B
HTML
Raw Normal View History

2019-08-18 19:36:52 +02:00
{{ define "content" -}}
{{ if eq .Site.Params.home_mode "post" -}}
2019-08-11 19:36:19 +02:00
<div class="post-warp">
2019-08-18 19:36:52 +02:00
{{- partial "home/profile.html" . -}}
2019-08-11 19:36:19 +02:00
{{ $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 -}}
2019-08-18 19:36:52 +02:00
{{ .Render "summary" -}}
{{ end -}}
2019-08-11 19:36:19 +02:00
{{ partial "paginator.html" . -}}
2019-08-11 19:36:19 +02:00
</div>
2019-08-18 19:36:52 +02:00
{{- else -}}
{{ partial "home/profile.html" . -}}
{{ end -}}
{{ end }}