mirror of
https://github.com/jgthms/bulma
synced 2026-03-18 03:14:30 -07:00
Update sponsors
This commit is contained in:
21
docs/_includes/elements/sponsor-item.html
Normal file
21
docs/_includes/elements/sponsor-item.html
Normal file
@@ -0,0 +1,21 @@
|
||||
{% assign sponsor = site.data.sponsors.by_id[include.sponsor_id] %}
|
||||
{% assign sponsor_path = "sponsors/" | append: include.sponsor_id %}
|
||||
{% assign sponsor_alt = sponsor.name | append: " logo" %}
|
||||
|
||||
<div class="{{ include.classname }}">
|
||||
<a
|
||||
href="{{ sponsor.url }}"
|
||||
target="_blank"
|
||||
rel="nofollow"
|
||||
{% 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>
|
||||
</div>
|
||||
Reference in New Issue
Block a user