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 ++++------ 4 files changed, 17 insertions(+), 34 deletions(-) (limited to 'themes/Brine/layouts/_default') 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 }}

- {{ partial "pagination.html" $ }} -
{{ end }} +{{ define "main" }}

{{ .Title }}

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

{{ .Title }}

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

{{ .Title }}

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

- -
{{ end }} +{{ define "main" }}

{{ .Title }}

+ {{ end }} -- cgit v1.2.3