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>
|
<blockquote>
|
||||||
<p>{{ .Inner | markdownify }}</p>
|
<p>{{ .Inner | markdownify }}</p>
|
||||||
|
{{- if or (.Get "author") (.Get "source") -}}
|
||||||
<span class="cite"><span>― </span>
|
<span class="cite"><span>― </span>
|
||||||
{{- if .Get "author" -}}
|
{{- if .Get "author" -}}
|
||||||
<span>
|
<span>
|
||||||
@ -10,4 +11,5 @@
|
|||||||
<cite>{{ .Get "source" }}</cite>
|
<cite>{{ .Get "source" }}</cite>
|
||||||
{{- if .Get "url" -}}</a>{{- end -}}
|
{{- if .Get "url" -}}</a>{{- end -}}
|
||||||
</span>
|
</span>
|
||||||
|
{{- end -}}
|
||||||
</blockquote>
|
</blockquote>
|
||||||
|
Loading…
Reference in New Issue
Block a user