mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2025-04-29 03:53:30 +08:00
Use trim to improve whitespace
This commit is contained in:
parent
160bb7e700
commit
809b930a3f
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user