aboutsummaryrefslogtreecommitdiff
path: root/layouts/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/index.html')
-rw-r--r--layouts/index.html14
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