feat: new style and faster

This commit is contained in:
Dillon
2019-08-12 01:36:19 +08:00
parent a8bb44da3a
commit 9433736ede
75 changed files with 2330 additions and 4364 deletions

View File

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