Rearrange the variable declarations in post_figure

This commit is contained in:
Eryn Wells 2022-03-25 23:22:50 -07:00
parent c068a0b9c0
commit b85ec512ef

View file

@ -1,6 +1,6 @@
{{ $img := (.Page.Resources.GetMatch (.Get "name")) }}
{{ $resized_img := $img.Fit "576x576" }}
<figure>
{{ $img := (.Page.Resources.GetMatch (.Get "name")) }}
{{ $resized_img := $img.Fit "576x576" }}
<a href="{{ $img.RelPermalink }}">
<img src="{{ $resized_img.RelPermalink }}" />
</a>