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>
<p>{{ .Inner | markdownify }}</p>
<span class="cite">
<span></span>
{{ if .Get "author" }}
<span>
{{ .Get "author" }}{{ if .Get "source" }}, {{ end }}
</span>
{{ end }}
{{ with .Get "url" }}<a href="{{ . }}">{{ end }}
<cite>{{ .Get "source" }}</cite>
{{ if .Get "url" }}</a>{{ end }}
<span class="cite"><span></span>
{{- if .Get "author" -}}
<span>
{{- .Get "author" -}}{{- if .Get "source" -}}, {{ end -}}
</span>
{{- end -}}
{{- with .Get "url" -}}<a href="{{ . }}">{{- end -}}
<cite>{{ .Get "source" }}</cite>
{{- if .Get "url" -}}</a>{{- end -}}
</span>
</blockquote>