Skip to content

Commit eea9e24

Browse files
author
Josh Habdas
committed
Add caption as image alt text
1 parent 84d29de commit eea9e24

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_includes/gallery

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
{% capture url %}{{ item.image_url }}{% endcapture %}
3131
{% assign split_url = url | split: '.' %}
3232
{% capture thumb_url %}{{split_url[0]}}-thumb.{{split_url[1]}}{% endcapture %}
33-
<li><a href="{{ site.urlimg }}{{ item.image_url }}"><img {% if item.caption %}data-caption="{{ item.caption }}"{% endif %} src="{{ site.urlimg }}{{ thumb_url }}" alt=""></a></li>
33+
<li><a href="{{ site.urlimg }}{{ item.image_url }}"><img {% if item.caption %}data-caption="{{ item.caption }}"{% endif %} src="{{ site.urlimg }}{{ thumb_url }}" alt="{{ item.caption }}"></a></li>
3434
{% endfor %}
3535
</ul>
36-
</div>
36+
</div>

0 commit comments

Comments
 (0)