diff --git a/README.md b/README.md index 766ac21b..2408ae48 100644 --- a/README.md +++ b/README.md @@ -511,7 +511,7 @@ title: Search The `paige/figure` shortcode provides a figure with centered content. ``` -{{< paige/figure caption="My caption" float="left" >}} +{{< paige/figure align="center" caption="My caption" float="left" >}} My content {{< /paige/figure >}} ``` @@ -521,6 +521,8 @@ Parameters:
.Inner
align
start
, center
, or end
. Default is center
.caption
float
.Inner
align
start
, center
, or end
.start
, center
, or end
. Default is center
.caption
cite
.cite
.Inner
align
start
, center
, or end
. Default is center
.caption
float
align
start
, center
, or end
. Default is center
.alt
caption
{{ $content }}- {{ if $caption }} -
%v` $align $content | safeHTML }} + +{{ partial "paige/figure.html" (dict + "align" $align + "caption" $caption + "content" $content + "float" $float + "gap" "0" + "height" $height + "maxheight" $maxheight + "maxwidth" $maxwidth + "width" $width +) }}