bulma/docs/_includes/elements/sponsor-item.html

24 lines
626 B
HTML
Raw Normal View History

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" %}
<div class="{{ include.classname }}">
<a
href="{{ sponsor.url }}"
target="_blank"
2019-03-13 19:01:37 +00:00
{% unless sponsor.follow %}
2019-02-07 18:03:02 +00:00
rel="nofollow"
2019-03-13 19:01:37 +00:00
{% endunless %}
2019-02-07 18:03:02 +00:00
{% 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>
2019-06-28 11:24:30 +00:00
</div>