Allow for quote with neither author nor source

This commit is contained in:
Simon Guest 2021-11-21 15:01:18 +13:00
parent 809b930a3f
commit a820c25fe6

View File

@ -1,5 +1,6 @@
<blockquote>
<p>{{ .Inner | markdownify }}</p>
{{- if or (.Get "author") (.Get "source") -}}
<span class="cite"><span></span>
{{- if .Get "author" -}}
<span>
@ -10,4 +11,5 @@
<cite>{{ .Get "source" }}</cite>
{{- if .Get "url" -}}</a>{{- end -}}
</span>
{{- end -}}
</blockquote>