diff options
-rw-r--r-- | themes/Brine/layouts/_default/list.html | 5 | ||||
-rw-r--r-- | themes/Brine/layouts/partials/pagination.html | 6 |
2 files changed, 3 insertions, 8 deletions
diff --git a/themes/Brine/layouts/_default/list.html b/themes/Brine/layouts/_default/list.html index 0908d28..8cc2549 100644 --- a/themes/Brine/layouts/_default/list.html +++ b/themes/Brine/layouts/_default/list.html @@ -1,5 +1,4 @@ {{ define "main" }} <h1>{{ .Title }}</h1> - <ul>{{ $paginator := .Paginate (where .Site.RegularPages.ByDate.Reverse "Section" "posts") }}{{ range $paginator.Pages }} + <ul>{{ $paginator := .Paginate (where .Site.RegularPages.ByDate.Reverse "Section" "posts") }}{{ range $paginator.Pages }} <li><h3><a href="{{ .Permalink }}">{{ .Title }}</a></h3><span>{{ .PublishDate.Format "Jan 2, 2006" }}{{ if ne .Lastmod .PublishDate }} updated{{ end }}, {{ .ReadingTime }} min read</span></li>{{ end }} - </ul> -{{ partial "pagination.html" $ }}{{ end }} + </ul>{{ partial "pagination.html" $ }}{{ end }}
\ No newline at end of file diff --git a/themes/Brine/layouts/partials/pagination.html b/themes/Brine/layouts/partials/pagination.html index 6109d45..027836b 100644 --- a/themes/Brine/layouts/partials/pagination.html +++ b/themes/Brine/layouts/partials/pagination.html @@ -1,5 +1 @@ -{{ with $.Paginator }}{{ if gt .TotalPages 1 }} <p class="pagination"> - {{ with .Prev }}<a href="{{ .URL }}">Previous</a> - {{ end }}{{ range .Pagers }}<a{{ if eq .PageNumber $.Paginator.PageNumber }} class="active"{{ end }} href="{{ .URL }}">{{ .PageNumber }}</a> - {{ end }}{{ with .Next }}<a href="{{ .URL }}">Next</a>{{ end }} - </p>{{ end }}{{ end }}
\ No newline at end of file +{{ with $.Paginator }}{{ if gt .TotalPages 1 }}<p class="pagination">{{ with .Prev }}<a href="{{ .URL }}">Previous</a>{{ end }}{{ range .Pagers }}<a{{ if eq .PageNumber $.Paginator.PageNumber }} class="active"{{ end }} href="{{ .URL }}">{{ .PageNumber }}</a>{{ end }}{{ with .Next }}<a href="{{ .URL }}">Next</a>{{ end }}</p>{{ end }}{{ end }}
\ No newline at end of file |