Use trim to improve whitespace

This commit is contained in:
Simon Guest 2021-11-10 21:21:19 +13:00
parent 160bb7e700
commit 809b930a3f

View File

@ -1,14 +1,13 @@
<blockquote> <blockquote>
<p>{{ .Inner | markdownify }}</p> <p>{{ .Inner | markdownify }}</p>
<span class="cite"> <span class="cite"><span></span>
<span></span> {{- if .Get "author" -}}
{{ if .Get "author" }}
<span> <span>
{{ .Get "author" }}{{ if .Get "source" }}, {{ end }} {{- .Get "author" -}}{{- if .Get "source" -}}, {{ end -}}
</span> </span>
{{ end }} {{- end -}}
{{ with .Get "url" }}<a href="{{ . }}">{{ end }} {{- with .Get "url" -}}<a href="{{ . }}">{{- end -}}
<cite>{{ .Get "source" }}</cite> <cite>{{ .Get "source" }}</cite>
{{ if .Get "url" }}</a>{{ end }} {{- if .Get "url" -}}</a>{{- end -}}
</span> </span>
</blockquote> </blockquote>