diff options
author | breadcat | 2020-08-16 12:41:08 +0100 |
---|---|---|
committer | breadcat | 2020-08-16 12:41:08 +0100 |
commit | c29fde8a7e061a93496d71cddef19643b45c8aa3 (patch) | |
tree | 924b81cbda8648eb40f79fa8e262b02b2e618dfc /themes/Brine | |
parent | a294a7de510a91edd4a02eafc3457d28e94941a7 (diff) | |
download | blog.minskio.co.uk-c29fde8a7e061a93496d71cddef19643b45c8aa3.tar.gz blog.minskio.co.uk-c29fde8a7e061a93496d71cddef19643b45c8aa3.tar.bz2 blog.minskio.co.uk-c29fde8a7e061a93496d71cddef19643b45c8aa3.zip |
Help with --minify
Not sure why pagination insists on preserving whitespace, but don't feel
like diagnosing. This fixes it
Diffstat (limited to 'themes/Brine')
-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 |