mirror of
https://github.com/jgthms/bulma.git
synced 2024-12-12 13:28:30 +00:00
28 lines
701 B
HTML
28 lines
701 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 %}
|
|
|
|
<div class="{{ include.classname }}">
|
|
<a
|
|
class="bd-sponsor-item"
|
|
href="{{ sponsor.url }}"
|
|
target="_blank"
|
|
{% unless sponsor.follow %}
|
|
rel="nofollow"
|
|
{% endunless %}
|
|
title="{{ sponsor_alt }}"
|
|
>
|
|
{%
|
|
include elements/responsive-image-2x.html
|
|
path=sponsor_path
|
|
extension="png"
|
|
alt=sponsor_alt
|
|
width=sponsor.width
|
|
height=sponsor.height
|
|
%}
|
|
</a>
|
|
</div>
|