mirror of
https://github.com/dillonzq/LoveIt.git
synced 2024-11-22 23:08:17 +01:00
16 lines
No EOL
531 B
HTML
16 lines
No EOL
531 B
HTML
{{ define "content" -}}
|
|
{{ if eq .Site.Params.home_mode "post" -}}
|
|
<div class="post-warp">
|
|
{{- partial "home/profile.html" . -}}
|
|
|
|
{{- $paginator := .Paginate (where (where .Data.Pages "Type" "posts") ".Params.show_in_homepage" "!=" false) }}
|
|
{{ range $paginator.Pages -}}
|
|
{{ .Render "summary" -}}
|
|
{{ end -}}
|
|
|
|
{{ partial "paginator.html" . }}
|
|
</div>
|
|
{{- else -}}
|
|
{{ partial "home/profile.html" . -}}
|
|
{{ end -}}
|
|
{{ end }} |