mirror of
https://github.com/jgthms/bulma.git
synced 2024-12-12 13:28:30 +00:00
08ef4df2c0
* Add Bulma v9 * Add vendor dependencies * Fix native * Fix sponsors * Add style attribute
33 lines
790 B
HTML
33 lines
790 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"
|
|
{% unless sponsor.follow or sponsor.noopener %}
|
|
rel="nofollow"
|
|
{% endunless %}
|
|
{% 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>
|