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

28 lines
701 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" %}
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
<div class="{{ include.classname }}">
<a
2020-02-20 21:08:58 +00:00
class="bd-sponsor-item"
2019-02-07 18:03:02 +00:00
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-07-18 09:20:17 +00:00
title="{{ sponsor_alt }}"
2019-02-07 18:03:02 +00:00
>
{%
2019-07-20 10:21:34 +00:00
include elements/responsive-image-2x.html
2019-02-07 18:03:02 +00:00
path=sponsor_path
extension="png"
alt=sponsor_alt
width=sponsor.width
2019-08-01 08:43:09 +00:00
height=sponsor.height
2019-02-07 18:03:02 +00:00
%}
</a>
2019-06-28 11:24:30 +00:00
</div>