2019-02-07 18:03:02 +00:00
|
|
|
{% assign sponsor = site.data.sponsors.by_id[include.sponsor_id] %}
|
2019-06-28 11:24:30 +00:00
|
|
|
{% assign sponsor_path = "amis/" | append: include.sponsor_id %}
|
2019-02-07 18:03:02 +00:00
|
|
|
{% assign sponsor_alt = sponsor.name | append: " logo" %}
|
2019-07-18 09:20:17 +00:00
|
|
|
{% if sponsor.title != "" %}
|
|
|
|
{% assign sponsor_alt = sponsor.title %}
|
|
|
|
{% endif %}
|
2019-02-07 18:03:02 +00:00
|
|
|
|
2021-01-27 23:30:42 +00:00
|
|
|
<a
|
|
|
|
class="bd-sponsor-item {{ include.classname }}"
|
|
|
|
href="{{ sponsor.url }}"
|
|
|
|
target="_blank"
|
|
|
|
{% if sponsor.noopener %}
|
|
|
|
rel="noopener"
|
|
|
|
{% endif %}
|
|
|
|
title="{{ sponsor_alt }}"
|
|
|
|
>
|
|
|
|
{% if sponsor.textOnly %}
|
|
|
|
<strong>{{ sponsor.textOnly }}</strong>
|
2023-07-03 15:41:28 +00:00
|
|
|
{% elsif sponsor.svg %}
|
|
|
|
{%
|
|
|
|
include elements/responsive-image-2x.html
|
|
|
|
path=sponsor_path
|
|
|
|
extension="svg"
|
|
|
|
alt=sponsor_alt
|
|
|
|
width=sponsor.width
|
|
|
|
height=sponsor.height
|
|
|
|
%}
|
2021-01-27 23:30:42 +00:00
|
|
|
{% else %}
|
|
|
|
{%
|
|
|
|
include elements/responsive-image-2x.html
|
|
|
|
path=sponsor_path
|
|
|
|
extension="png"
|
|
|
|
alt=sponsor_alt
|
|
|
|
width=sponsor.width
|
|
|
|
height=sponsor.height
|
|
|
|
%}
|
|
|
|
{% endif %}
|
|
|
|
</a>
|