From 6f7b8a114d998778a2cf7772a29feb3bff6cba81 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 17 Jun 2018 19:39:43 +0200 Subject: Tweak whitespace --- layouts/_default/baseof.html | 8 ++--- layouts/_default/list.html | 20 ++++++------- layouts/_default/single.html | 68 +++++++++++++++++++++---------------------- layouts/partials/head.html | 30 +++++++++---------- layouts/partials/sidebar.html | 56 +++++++++++++++++------------------ 5 files changed, 90 insertions(+), 92 deletions(-) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 0c87c3f..8b6c324 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,9 +1,9 @@ {{ partial "head.html" . }} - {{ partial "sidebar.html" . }} -
- {{ block "main" . -}}{{- end }} -
+{{ partial "sidebar.html" . }} +
+{{ block "main" . -}}{{- end }} +
{{ template "_internal/google_analytics_async.html" . }} diff --git a/layouts/_default/list.html b/layouts/_default/list.html index cae4c08..5b51eba 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,11 +1,11 @@ -{{ define "main" -}} -

{{ .Title }}

- +{{ define "main" }} +

{{ .Title }}

+ {{- end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index fb048a2..d5d1774 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,37 +1,35 @@ {{ define "main" -}} -
-
- -

{{ .Title }}

-
- -
-
- {{ .Content }} -
- -
- -{{ if .Site.DisqusShortname -}} -

Comments

-{{ template "_internal/disqus.html" . }} -{{- end }} +
+
+ +

{{ .Title }}

+
+ +
+
+ {{ .Content }} +
+ +
+ {{- if .Site.DisqusShortname }} +

Comments

+ {{ template "_internal/disqus.html" . }} + {{- end }} {{- end }} diff --git a/layouts/partials/head.html b/layouts/partials/head.html index c92ea95..49a7659 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -1,19 +1,19 @@ - - - + + + - {{ if .IsHome -}} - {{ .Site.Title }} - {{- else -}} - {{ .Title }} · {{ .Site.Title }} - {{- end }} + {{- if .IsHome }} + {{ .Site.Title }} + {{ else }} + {{ .Title }} · {{ .Site.Title }} + {{ end -}} - - - - - - {{ partial "hook_head_end.html" . }} - + + + + + + {{ partial "hook_head_end.html" . }} + \ No newline at end of file diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index e6aadac..c89cc6f 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -1,32 +1,32 @@ - + + -- cgit 1.4.1