1
Fork 0

Remove paginator from posts list

This commit is contained in:
Jake Howard 2018-08-19 12:07:19 +01:00
parent 21f3a23096
commit c822104486
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -1,10 +1,9 @@
{{ define "main" }}
<div id="main">
<div class="container">
{{ $paginator := .Paginate (.Data.Pages.GroupByDate "2006-01") }}
<h1 class="display-4">{{ .Title }}</h1>
{{ range $paginator.PageGroups }}
{{ $month := (print .Key "-01") }}
{{ range .Data.Pages.GroupByDate "2006-01" }}
{{ $month := print .Key "-01" }}
{{ if (index .Pages 0).Date.IsZero }}
<hr class="my-5" />
{{ else }}