Don't insert the <figcaption> if a title doesn't exist
This commit is contained in:
parent
af7252aa6e
commit
8a9ddddf09
1 changed files with 2 additions and 2 deletions
|
@ -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>
|
Loading…
Add table
Add a link
Reference in a new issue