From c29fde8a7e061a93496d71cddef19643b45c8aa3 Mon Sep 17 00:00:00 2001 From: breadcat Date: Sun, 16 Aug 2020 12:41:08 +0100 Subject: Help with --minify Not sure why pagination insists on preserving whitespace, but don't feel like diagnosing. This fixes it --- themes/Brine/layouts/_default/list.html | 5 ++--- themes/Brine/layouts/partials/pagination.html | 6 +----- 2 files changed, 3 insertions(+), 8 deletions(-) (limited to 'themes/Brine/layouts') 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" }}

{{ .Title }}

- {{ 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 }}

- {{ with .Prev }}Previous - {{ end }}{{ range .Pagers }}{{ .PageNumber }} - {{ end }}{{ with .Next }}Next{{ end }} -

{{ end }}{{ end }} \ No newline at end of file +{{ with $.Paginator }}{{ if gt .TotalPages 1 }}

{{ with .Prev }}Previous{{ end }}{{ range .Pagers }}{{ .PageNumber }}{{ end }}{{ with .Next }}Next{{ end }}

{{ end }}{{ end }} \ No newline at end of file -- cgit v1.2.3