blog.minskio.co.uk

Content and theme behind minskio.co.uk
Log | Files | Refs

commit 0e7154c01c816ed716470eb170a1992bab3a831c
parent a40675b396f4c971867fb4cfdc03b8f4b3866d05
Author: breadcat <peter@minskio.co.uk>
Date:   Tue, 10 Nov 2020 20:05:31 +0000

Fixes broken pagination on tags pages

Diffstat:
Mthemes/Brine/layouts/_default/list.html | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/themes/Brine/layouts/_default/list.html b/themes/Brine/layouts/_default/list.html @@ -3,10 +3,11 @@ {{ if .IsHome }} {{ $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" $ }} {{ else }} {{ range .Pages.ByDate.Reverse }} <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> {{ end }} -</ul>{{ partial "pagination.html" $ }}{{ end }} - +{{ end }} +\ No newline at end of file