Don't insert the <figcaption> if a title doesn't exist

This commit is contained in:
Eryn Wells 2021-12-26 12:40:40 -07:00
parent af7252aa6e
commit 8a9ddddf09

View file

@ -4,9 +4,9 @@
<a href="{{ $img.RelPermalink }}">
<img src="{{ $resized_img.RelPermalink }}" />
</a>
{{ if $img.Title }}
<figcaption>
{{ if $img.Title }}
<h4>{{ $img.Title }}</h4>
{{ end }}
</figcaption>
{{ end }}
</figure>