From 809b930a3fb12cd9d7dd6da702e6bfe2b7fe6150 Mon Sep 17 00:00:00 2001 From: Simon Guest Date: Wed, 10 Nov 2021 21:21:19 +1300 Subject: [PATCH] Use trim to improve whitespace --- layouts/shortcodes/quote.html | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/layouts/shortcodes/quote.html b/layouts/shortcodes/quote.html index e8f1980..208c961 100644 --- a/layouts/shortcodes/quote.html +++ b/layouts/shortcodes/quote.html @@ -1,14 +1,13 @@

{{ .Inner | markdownify }}

- - - {{ if .Get "author" }} - - {{ .Get "author" }}{{ if .Get "source" }}, {{ end }} - - {{ end }} - {{ with .Get "url" }}{{ end }} - {{ .Get "source" }} - {{ if .Get "url" }}{{ end }} + + {{- if .Get "author" -}} + + {{- .Get "author" -}}{{- if .Get "source" -}}, {{ end -}} + {{- end -}} + {{- with .Get "url" -}}{{- end -}} + {{ .Get "source" }} + {{- if .Get "url" -}}{{- end -}} +