Previously, if you didn't include a caption, the `<figure>` tag would never be closed. Just needed to move the `{% endif %}`