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
|
<img
|
||||||
src="{{ $attachment['preview_url'] }}"
|
src="{{ $attachment['preview_url'] }}"
|
||||||
alt="{{ $attachment['description'] }}"
|
alt="{{
|
||||||
|
$attachment['description'] === null
|
||||||
|
? $attachment['url']
|
||||||
|
: $attachment['description']
|
||||||
|
}}"
|
||||||
/>
|
/>
|
||||||
</a>
|
</a>
|
||||||
</figure>
|
</figure>
|
||||||
|
|
Loading…
Reference in New Issue