mirror of
https://github.com/jgthms/bulma
synced 2026-03-17 19:04: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>
|
||||
@@ -1,6 +1,6 @@
|
||||
<div class="bd-footer-support">
|
||||
<h4 class="bd-footer-title">
|
||||
<strong>Support</strong> Bulma
|
||||
<strong>Support</strong> Bulma <span class="bd-emoji-bis">😃</span>
|
||||
</h4>
|
||||
|
||||
<div class="bd-footer-donations columns">
|
||||
@@ -18,6 +18,19 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="bd-footer-donation column">
|
||||
<p class="bd-footer-donation-title">
|
||||
Visit our <strong>Sponsor</strong>
|
||||
</p>
|
||||
|
||||
{% for sponsor_id in site.data.sponsors.footer %}
|
||||
{% include elements/sponsor-item.html
|
||||
sponsor_id=sponsor_id
|
||||
classname="bd-footer-sponsor"
|
||||
%}
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
<div class="bd-footer-donation column">
|
||||
<p class="bd-footer-donation-title">
|
||||
<strong>Monthly</strong> donation
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{% include global/native.html %}
|
||||
|
||||
{% include footer/support.html %}
|
||||
|
||||
{% include global/native.html %}
|
||||
|
||||
{% include book/book-banner.html %}
|
||||
|
||||
{% include global/newsletter.html %}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<a class="bd-banner is-fortyfour" href="https://jgthms.com/css-in-44-minutes-ebook" target="_blank">
|
||||
<p class="bd-banner-label">
|
||||
New ebook!
|
||||
My CSS ebook
|
||||
</p>
|
||||
|
||||
<figure class="bd-banner-image">
|
||||
|
||||
@@ -5,28 +5,11 @@
|
||||
<p class="bd-partner-title">Sponsors</p>
|
||||
|
||||
<div class="bd-partner-sponsors">
|
||||
{% for sponsor_id in site.data.sponsors.list %}
|
||||
{% assign sponsor = site.data.sponsors.by_id[sponsor_id] %}
|
||||
{% assign sponsor_path = "sponsors/" | append: sponsor_id %}
|
||||
{% assign sponsor_alt = sponsor.name | append: " logo" %}
|
||||
|
||||
<div class="bd-partner-sponsor">
|
||||
<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>
|
||||
{% for sponsor_id in site.data.sponsors.home %}
|
||||
{% include elements/sponsor-item.html
|
||||
sponsor_id=sponsor_id
|
||||
classname="bd-partner-sponsor"
|
||||
%}
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user