From c6d76a5a537ad6f79e591722eb883958f5ee1fea Mon Sep 17 00:00:00 2001 From: Emiel Hollander Date: Sat, 25 Aug 2018 10:57:06 +0200 Subject: Tidy up HTML output --- layouts/_default/single.html | 22 +++++++++++----------- layouts/partials/head.html | 16 +++++++--------- 2 files changed, 18 insertions(+), 20 deletions(-) (limited to 'layouts') diff --git a/layouts/_default/single.html b/layouts/_default/single.html index fac4e58..2e05fc5 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,19 +1,19 @@ -{{ partial "header.html" . }} +{{- partial "header.html" . }}

{{ .Title }}

@@ -24,15 +24,15 @@
-{{ partial "footer.html" . }} \ No newline at end of file +{{- partial "footer.html" . }} \ No newline at end of file diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 99546be..ef91b1d 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -1,20 +1,18 @@ - {{ if eq .URL "/" }} + {{- if eq .URL "/" }} - {{ else }} - {{ if .Description }} - - {{ end }} - {{ end }} + {{- else if .Description }} + + {{- end }} - {{ if eq .URL "/" }} + {{- if eq .URL "/" }} {{ .Site.Title }} - {{ else }} + {{- else }} {{ .Title }} · {{ .Site.Title }} - {{ end }} + {{- end }} -- cgit v1.2.3