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 +++++------
5 files changed, 22 insertions(+), 40 deletions(-)
(limited to 'themes')
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 }} - {{ .PublishDate.Format "Jan 2, 2006" }}, {{ .ReadingTime }} min read
- {{ end }}
{{ partial "pagination.html" $ }}
- {{ end }}
+{{ define "main" }}
{{ .Title }}
+ {{ range $index, $element := .Paginator.Pages }}
+ - {{ .PublishDate.Format "Jan 2, 2006" }}, {{ .ReadingTime }} min read
{{ end }}
+
+{{ partial "pagination.html" $ }}{{ end }}
diff --git a/themes/Brine/layouts/_default/page.html b/themes/Brine/layouts/_default/page.html
index 8c69ad7..e32b8d9 100644
--- a/themes/Brine/layouts/_default/page.html
+++ b/themes/Brine/layouts/_default/page.html
@@ -1,10 +1,3 @@
-{{ define "main" }}
-
-
- {{ .Content }}
- {{ end }}
+{{ define "main" }} {{ .Title }}
+ Reading time: {{ .ReadingTime }} min
+ {{ .Content }}{{ end }}
diff --git a/themes/Brine/layouts/_default/single.html b/themes/Brine/layouts/_default/single.html
index a34f75c..dacdc89 100644
--- a/themes/Brine/layouts/_default/single.html
+++ b/themes/Brine/layouts/_default/single.html
@@ -1,12 +1,5 @@
-{{ define "main" }}
-
-
- {{ .Content }}
- {{ end }}
+{{ define "main" }} {{ .Title }}
+ Published: {{ .PublishDate.Format "Jan 2, 2006" }}
+ Reading time: {{ .ReadingTime }} min
{{- with .Params.tags -}}
+ Tags: {{ range . -}}{{- with $.Site.GetPage (printf "/%s/%s" "tags" . ) -}}
{{ .Title }} {{- end -}}{{- end -}}
{{- end -}}
+ {{ .Content }}{{ end }}
diff --git a/themes/Brine/layouts/_default/terms.html b/themes/Brine/layouts/_default/terms.html
index a90786c..a6a4d96 100644
--- a/themes/Brine/layouts/_default/terms.html
+++ b/themes/Brine/layouts/_default/terms.html
@@ -1,6 +1,4 @@
-{{ define "main" }}
- {{ .Title }}
-
- {{ range .Data.Terms.Alphabetical }} - {{ .Page.Title }} {{ .Count }}
- {{ end }}
- {{ end }}
+{{ define "main" }} {{ .Title }}
+ {{ end }}
diff --git a/themes/Brine/layouts/partials/pagination.html b/themes/Brine/layouts/partials/pagination.html
index 7ed3bce..1dc3648 100644
--- a/themes/Brine/layouts/partials/pagination.html
+++ b/themes/Brine/layouts/partials/pagination.html
@@ -1,6 +1,5 @@
-{{ with $.Paginator }}{{ if gt .TotalPages 1 }}
- {{ end }}{{ end }}
\ No newline at end of file
+{{ with $.Paginator }}{{ if gt .TotalPages 1 }} {{ end }}{{ end }}
\ No newline at end of file
--
cgit v1.2.3