diff --git a/layouts/shortcodes/post_figure.html b/layouts/shortcodes/post_figure.html
index 52d65a7..7c3f388 100644
--- a/layouts/shortcodes/post_figure.html
+++ b/layouts/shortcodes/post_figure.html
@@ -1,6 +1,6 @@
+{{ $img := (.Page.Resources.GetMatch (.Get "name")) }}
+{{ $resized_img := $img.Fit "576x576" }}
- {{ $img := (.Page.Resources.GetMatch (.Get "name")) }}
- {{ $resized_img := $img.Fit "576x576" }}