Add caption to described images without a preview
This commit is contained in:
parent
2c297da755
commit
2eab25e7c1
|
@ -1,5 +1,10 @@
|
|||
{{if $image->preview}}
|
||||
<a data-fancybox="{{$image->uriId}}" href="{{$image->url}}"><img src="{{$image->preview}}" alt="{{$image->description}}" title="{{$image->description}}" loading="lazy"></a>
|
||||
{{else}}
|
||||
<figure>
|
||||
<img src="{{$image->url}}" alt="{{$image->description}}" title="{{$image->description}}" loading="lazy">
|
||||
{{if $image->description}}
|
||||
<figcaption>{{$image->description}}</figcaption>
|
||||
{{/if}}
|
||||
</figure>
|
||||
{{/if}}
|
||||
|
|
|
@ -12,6 +12,9 @@
|
|||
</a>
|
||||
{{else}}
|
||||
<img src="{{$image->url}}" alt="{{$image->description}}" title="{{$image->description}}" loading="lazy">
|
||||
{{if $image->description}}
|
||||
<figcaption>{{$image->description}}</figcaption>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
</figure>
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user