diff --git a/layouts/partials/blocks/templates/figure.html b/layouts/partials/blocks/templates/figure.html index cba8183..6569d2c 100644 --- a/layouts/partials/blocks/templates/figure.html +++ b/layouts/partials/blocks/templates/figure.html @@ -17,6 +17,8 @@ {{- $desktop = printf "%sx" (string $width) -}} {{- end -}} +{{- if .figure -}} +{{- $figure := merge .figure (dict "desktop" $desktop "mobile" $mobile) -}}
@@ -27,7 +29,7 @@
{{- end -}} - {{- with .figure -}} + {{- with $figure -}} {{- partial "commons/figure" . -}} {{- end -}} @@ -37,4 +39,5 @@ {{- end -}}
-
\ No newline at end of file + +{{- end -}} \ No newline at end of file