{{ .Title }}
--
- {{ range $index, $element := .Paginator.Pages }}
{{ .Title }}
- {{ end }}
From ad505d88ad0c586ca6b1eff2a0c7873c544c5fe1 Mon Sep 17 00:00:00 2001
From: breadcat
Date: Sun, 28 Jun 2020 00:34:31 +0100
Subject: Tidy up produced HTML
Indentation, unecessary CSS declarations, line breaks, everything must
go!
---
themes/Brine/layouts/_default/list.html | 11 +++++------
themes/Brine/layouts/_default/page.html | 13 +++----------
themes/Brine/layouts/_default/single.html | 17 +++++------------
themes/Brine/layouts/_default/terms.html | 10 ++++------
themes/Brine/layouts/partials/pagination.html | 11 +++++------
todo.txt | 2 --
6 files changed, 22 insertions(+), 42 deletions(-)
diff --git a/themes/Brine/layouts/_default/list.html b/themes/Brine/layouts/_default/list.html
index 6fc5811..2e0dee6 100644
--- a/themes/Brine/layouts/_default/list.html
+++ b/themes/Brine/layouts/_default/list.html
@@ -1,6 +1,5 @@
-{{ define "main" }}{{ .Title }}
-
- {{ range $index, $element := .Paginator.Pages }}
{{ partial "pagination.html" $ }}
- {{ .Title }}
- {{ 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 diff --git a/todo.txt b/todo.txt index bfa0b73..ee92417 100644 --- a/todo.txt +++ b/todo.txt @@ -1,5 +1,3 @@ merge themes\Brine\layouts\_default\{page single}.html using if statements fix lastmod content\posts\archived-{movies television}.md fix looping page lists \{recipes languages dreams}\* -correct indentations in page source -remove surplus newlines in page source -- cgit v1.2.3