bulma/docs/_includes/elements/sponsor-item.html
Jeremy Thomas 21c8940ebd Use amis
2019-06-28 12:24:30 +01:00

24 lines
626 B
HTML

{% 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" %}
<div class="{{ include.classname }}">
<a
href="{{ sponsor.url }}"
target="_blank"
{% unless sponsor.follow %}
rel="nofollow"
{% endunless %}
{% if sponsor.blend %}style="mix-blend-mode: multiply;"{% endif %}
>
{%
include elements/responsive-image.html
path=sponsor_path
extension="png"
alt=sponsor_alt
width=sponsor.width
height=sponsor.width
%}
</a>
</div>