diff --git a/layouts/partials/paige/figure.html b/layouts/partials/paige/figure.html index f71eaa8c..6b7fd748 100644 --- a/layouts/partials/paige/figure.html +++ b/layouts/partials/paige/figure.html @@ -67,16 +67,20 @@ {{ end }}
-
- {{ if $table }} -
- {{ end }} -
{{ $content }}
- {{ if $showcaption }} -
{{ $caption }}
- {{ end }} - {{ if $table }} -
- {{ end }} -
+ {{ if or $heightish $widthish (and (not $float) $style) }} +
+ {{ end }} + {{ if $table }} +
+ {{ end }} +
{{ $content }}
+ {{ if $showcaption }} +
{{ $caption }}
+ {{ end }} + {{ if $table }} +
+ {{ end }} + {{ if or $heightish $widthish (and (not $float) $style) }} +
+ {{ end }}