hugo-theme-stack/layouts/shortcodes/quote.html
2022-05-21 17:20:16 +12:00

14 lines
383 B
HTML

<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>
</blockquote>