From 17abf75b7ed01d1c647d3d8db7b7ac76df441561 Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Sat, 15 Oct 2022 09:35:07 -0700 Subject: [PATCH] Clean up head.html --- layouts/partials/head.html | 36 +++++++++++++++++------------------- 1 file changed, 17 insertions(+), 19 deletions(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 431e406..52b6f2f 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -5,31 +5,29 @@ {{ if not .IsHome }}{{ .Title }} - {{ end }}{{ site.Title }} - {{ if eq .Kind "page" }} - - - {{ else }} - - - {{ end }} + {{- if eq .Kind "page" -}} + + + {{- else -}} + + + {{- end -}} - - {{ range $.Scratch.Get "social-list" }} - - {{ end }} + {{- range $.Scratch.Get "social-list" -}} + + {{- end -}} {{ hugo.Generator }} - {{ range .AlternativeOutputFormats }} - - {{ end }} + {{- range .AlternativeOutputFormats -}} + + {{- end -}} - - {{ if or hugo.IsProduction (eq site.Params.env "production") }} - {{ template "_internal/schema.html" . }} - {{ template "_internal/twitter_cards.html" . }} - {{ end }} + {{- if or hugo.IsProduction (eq site.Params.env "production") -}} + {{ template "_internal/schema.html" . }} + {{ template "_internal/twitter_cards.html" . }} + {{- end -}}