diff options
author | olOwOlo <26087907+olOwOlo@users.noreply.github.com> | 2018-07-10 01:41:34 +0800 |
---|---|---|
committer | olOwOlo <26087907+olOwOlo@users.noreply.github.com> | 2018-07-10 01:41:34 +0800 |
commit | 5e356c5f635d45f0241854d9f43f38b2f0bd44f9 (patch) | |
tree | 52d12fa3e71c1f843c385271c2f22b8842ddc0ba /layouts/index.html | |
parent | d3a1ab071c983586b474c5e5dc0fa6afb0babce8 (diff) |
style(*): google js style & trim whitespace
Diffstat (limited to 'layouts/index.html')
-rw-r--r-- | layouts/index.html | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/layouts/index.html b/layouts/index.html index 26d6869..9d013f2 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,24 +1,24 @@ -{{ define "content" }} +{{- define "content" -}} <section id="posts" class="posts"> {{/* (index .Site.Paginate) */}} - {{ $paginator := .Paginate (where (where .Data.Pages "Type" "post") ".Params.hiddenfromhomepage" "!=" true) }} - {{ range $paginator.Pages }} + {{- $paginator := .Paginate (where (where .Data.Pages "Type" "post") ".Params.hiddenfromhomepage" "!=" true) }} + {{- range $paginator.Pages -}} {{ .Render "summary" }} - {{ end }} + {{ end -}} </section> <!-- pagination --> <nav class="pagination"> - {{ with $paginator.Prev }} + {{ with $paginator.Prev -}} <a class="prev" href="{{ .URL }}"> <i class="iconfont icon-left"></i> <span class="prev-text">{{ T "prevPage" }}</span> </a> {{- end }} - {{ with $paginator.Next }} + {{ with $paginator.Next -}} <a class="next" href="{{ .URL }}"> <span class="next-text">{{ T "nextPage" }}</span> <i class="iconfont icon-right"></i> </a> {{- end }} </nav> -{{ end }}
\ No newline at end of file +{{- end -}}
\ No newline at end of file |