From 1dde11e0ab6fb775a1823134ef45b89aaf38e97e Mon Sep 17 00:00:00 2001 From: Rajesh Kapoor <108592033+rajeshkapoor55@users.noreply.github.com> Date: Sat, 2 Jul 2022 21:01:08 +0100 Subject: [PATCH] Optimize HTML and save space --- layouts/_default/single.html | 34 +--------------------------------- 1 file changed, 1 insertion(+), 33 deletions(-) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 53f64c5..5f1b249 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,33 +1 @@ -{{ partial "header.html" . }} - -

{{ .Title }}

- -{{ .Content }} - -{{ $author := index .Site.Data.authors (.Params.author | default "default") }} -{{- if $author -}} -

Contributor(s)

- -{{- end -}} - -{{ partial "footer.html" . }} +{{partial "header.html" .}}

{{.Title}}

{{.Content}}{{$author :=index .Site.Data.authors (.Params.author | default "default")}}{{- if $author -}}

Contributor(s)

{{- end -}}{{partial "footer.html" .}}