diff options
Diffstat (limited to 'themes/default/layouts/shortcodes/quote.html')
-rw-r--r-- | themes/default/layouts/shortcodes/quote.html | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/themes/default/layouts/shortcodes/quote.html b/themes/default/layouts/shortcodes/quote.html new file mode 100644 index 0000000..b933286 --- /dev/null +++ b/themes/default/layouts/shortcodes/quote.html @@ -0,0 +1,13 @@ +{{- $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 -}} + <a rel="noopener" href="{{ $cite }}" target="_blank"> + {{- end -}} + {{ $text | markdownify }} + {{- if $cite -}} + </a> + {{- end -}} +</q> +{{- /* This comment removes trailing newlines and white spaces. */ -}} |