bulma/docs/_includes/elements/sponsor-item.html
2022-02-04 11:22:41 +00:00

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