blob: e0048d96debc1a32204dc47e662c1825e436aab1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
{{- $text := default "Speech is silver, silence is golden" (.Get "text" | default (.Get 0)) -}}
{{- $cite := default "" (.Get "cite" | default (.Get 1)) -}}
<q cite="$cite" title="{{ $text | markdownify }}">
{{- if $cite -}}
{{- print "[" $text "](" $cite ")" | markdownify -}}
{{- else -}}
{{- $text | markdownify -}}
{{- end -}}
</q>
{{- /* This comment removes trailing newlines and white spaces. */ -}}
|