Cleanup posts rendering

This commit is contained in:
Alex Shpak
2018-11-25 11:59:42 +01:00
parent a9738191b8
commit aa2b1870d0
5 changed files with 11 additions and 17 deletions
-2
View File
@@ -1,5 +1,4 @@
{{ define "main" }}
<section>
{{ $paginator := .Paginate (where .Pages "Params.hidden" "ne" true) }}
{{ range sort .Paginator.Pages }}
<article>
@@ -16,5 +15,4 @@
</article>
{{ end }}
{{ template "_internal/pagination.html" . }}
</section>
{{ end }}