Separate figure and quote shortcodes
parent
a9f609efcb
commit
830c2ba2c6
@ -1,25 +1,5 @@
|
|||||||
{{ $caption := .Get 0 | default (.Get "caption") }}
|
{{ $content := .Inner | replaceRE "^\n" "" | replaceRE "\n$" "" | markdownify }}
|
||||||
{{ $content := .Inner | replaceRE "^\n" "" | replaceRE "\n$" "" }}
|
|
||||||
{{ $float := .Get "float" }}
|
|
||||||
{{ $height := .Get "height" }}
|
|
||||||
{{ $horizontal := .Get "horizontal" }}
|
|
||||||
{{ $maxwidth := .Get "maxwidth" }}
|
|
||||||
{{ $number := .Get "number" }}
|
|
||||||
{{ $numbered := .Get "numbered" }}
|
|
||||||
{{ $vertical := .Get "vertical" }}
|
|
||||||
{{ $width := .Get "width" }}
|
|
||||||
|
|
||||||
{{ $content = printf `<blockquote class="blockquote mb-0">%v</blockquote>` $content }}
|
<div class="paige-quote">
|
||||||
|
<blockquote class="blockquote">{{ $content }}</blockquote>
|
||||||
{{ partial "paige/figure.html" (dict
|
</div>
|
||||||
"caption" $caption
|
|
||||||
"content" $content
|
|
||||||
"float" $float
|
|
||||||
"height" $height
|
|
||||||
"horizontal" $horizontal
|
|
||||||
"maxwidth" $maxwidth
|
|
||||||
"number" $number
|
|
||||||
"numbered" $numbered
|
|
||||||
"vertical" $vertical
|
|
||||||
"width" $width
|
|
||||||
) }}
|
|
||||||
|
Loading…
Reference in New Issue