diff --git a/layouts/shortcodes/blockquote.html b/layouts/shortcodes/blockquote.html index 9a36dd8..77db8e2 100644 --- a/layouts/shortcodes/blockquote.html +++ b/layouts/shortcodes/blockquote.html @@ -4,6 +4,7 @@ @params style Force a blockquote style. Optional. @params cite URI for work. Optional. @params source The speaker(s) of the quotation. + @params comment A comment to add after the citation. Optional. For works cited (optional): @params ibid Whether to use ibidem as the source. Optional. @@ -29,6 +30,7 @@ {{- $href := default "" ( index .Params "href" ) -}} {{- $ibid := default false ( index .Params "ibid" ) -}} {{- $source := .Params.source -}} +{{- $comment := .Params.comment -}} {{- $isSourceHidden := default ( not ( or ( isset .Params "source" ) ( isset .Params "ibid" ) ) ) ( index .Params "hideSource" ) -}} @@ -54,7 +56,7 @@
{{- .Inner | .Page.RenderString -}} -
+
{{- if $ibid -}} {{- end -}} + {{- with $comment -}} + {{- printf " (%s)" . -}} + {{- end -}} {{- end -}}