mirror of
https://github.com/jbcr/core.git
synced 2026-04-26 18:18:03 +02:00
Merge pull request #2922 from bolt/bugfix/empty-image-alt-throws-error
An empty image alt made the page throw an error
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<a href="{{ record|image }}">
|
||||
<img src="{{ thumbnail(record, 1368, 1026) }}" alt="{{ (record|image).alt|default(record|title) }}">
|
||||
</a>
|
||||
{% if image.alt %}
|
||||
{% if image.alt|default('') %}
|
||||
<figcaption>{{ image.alt }}</figcaption>
|
||||
{% endif %}
|
||||
</figure>
|
||||
|
||||
Reference in New Issue
Block a user