From 3d6c6cabba0fbceb27046aa7598d5b1b3d2de1a9 Mon Sep 17 00:00:00 2001 From: vimux Date: Mon, 3 Dec 2018 11:21:31 -0500 Subject: [PATCH] Reduce empty lines in head section --- layouts/_default/baseof.html | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index a750475..77f619d 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -8,14 +8,18 @@ {{ if not .IsHome }}{{ .Title }} | {{ end }}{{ .Site.Title }} - {{ if .Site.Params.opengraph }}{{ template "_internal/opengraph.html" . }}{{ end }} - {{ if .Site.Params.twitter_cards }}{{ template "_internal/twitter_cards.html" . }}{{ end }} + {{- if .Site.Params.opengraph }} + {{ template "_internal/opengraph.html" . }} + {{- end }} + {{- if .Site.Params.twitter_cards }} + {{ template "_internal/twitter_cards.html" . }} + {{- end }} - {{ with .OutputFormats.Get "rss" -}} + {{- with .OutputFormats.Get "rss" }} {{ printf `` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }} - {{ end -}} + {{- end }} {{- if and (.Site.Params.Manifest) ((.Site.GetPage "home").OutputFormats.Get "manifest") -}} {{- end }}