mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2025-04-29 03:53:30 +08:00
Allow for quote with neither author nor source
This commit is contained in:
parent
809b930a3f
commit
a820c25fe6
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user