Fix alt text

This commit is contained in:
Jeremy Thomas 2019-07-18 11:20:17 +02:00
parent 0e8e42b43a
commit 81693da8e3

View file

@ -1,6 +1,9 @@
{% assign sponsor = site.data.sponsors.by_id[include.sponsor_id] %}
{% assign sponsor_path = "amis/" | append: include.sponsor_id %}
{% assign sponsor_alt = sponsor.name | append: " logo" %}
{% if sponsor.title != "" %}
{% assign sponsor_alt = sponsor.title %}
{% endif %}
<div class="{{ include.classname }}">
<a
@ -9,7 +12,7 @@
{% unless sponsor.follow %}
rel="nofollow"
{% endunless %}
{% if sponsor.blend %}style="mix-blend-mode: multiply;"{% endif %}
title="{{ sponsor_alt }}"
>
{%
include elements/responsive-image.html