mirror of https://git.stjo.hn/planiverse
Fall back to URL for image alt text
If an attacment image has no description, use the URL for the alt text instead. Having no description was causing image links not to appear in Lynx.
This commit is contained in:
parent
457da06f22
commit
52a9cf68cd
|
@ -12,7 +12,11 @@
|
|||
>
|
||||
<img
|
||||
src="{{ $attachment['preview_url'] }}"
|
||||
alt="{{ $attachment['description'] }}"
|
||||
alt="{{
|
||||
$attachment['description'] === null
|
||||
? $attachment['url']
|
||||
: $attachment['description']
|
||||
}}"
|
||||
/>
|
||||
</a>
|
||||
</figure>
|
||||
|
|
Loading…
Reference in New Issue