feat: new index and style update

This commit is contained in:
Dillon
2019-08-19 01:36:52 +08:00
parent 6981f1e285
commit ee7c7549b5
29 changed files with 801 additions and 707 deletions

View File

@@ -1,15 +1,16 @@
{{ define "content" }}
{{ if eq .Site.Params.home_mode "post" }}
{{ define "content" -}}
{{ if eq .Site.Params.home_mode "post" -}}
<div class="post-warp">
{{ partial "home/profile.html" . }}
{{- partial "home/profile.html" . -}}
{{ range (.Paginate (where .Pages "Type" "posts")).Pages }}
{{ .Render "summary" }}
{{ end }}
{{- $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 }}
{{- else -}}
{{ partial "home/profile.html" . -}}
{{ end -}}
{{ end }}