{% 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 %} {% if sponsor.textOnly %} {{ sponsor.textOnly }} {% else %} {% include elements/responsive-image-2x.html path=sponsor_path extension="png" alt=sponsor_alt width=sponsor.width height=sponsor.height %} {% endif %}