bulma/docs/_includes/index/sponsor.html
2019-04-07 19:20:46 +01:00

55 lines
1.9 KiB
HTML

<div class="section bd-partnrs">
<div class="container">
<div class="bd-partnrs-list">
<div class="bd-partner bd-is-sponsor">
<p class="bd-partner-title">Sponsors</p>
<div class="bd-partner-sponsors">
{% for sponsor_id in site.data.sponsors.home %}
{% include elements/sponsor-item.html
sponsor_id=sponsor_id
classname="bd-partner-sponsor"
%}
{% endfor %}
</div>
</div>
<div class="bd-partner bd-is-carbon">
<p class="bd-partner-title">Ads via Carbon</p>
<div class="bd-partner-carbon">
{% include elements/carbon.html %}
</div>
</div>
</div>
<div class="bd-minis">
<p class="bd-minis-title">
{% assign mini_item = site.data.global.navbar_items[2] %}
<a class="bd-minis-link" href="{{ site.url }}/{{ mini_item.id }}">
<span class="icon {{ mini_item.color }}">
<i class="{{ mini_item.fa_type }} {{ mini_item.fa_icon }}"></i>
</span>From the expo <strong>#builtwithbulma</strong>
</a>
</p>
<div class="bd-minis-list">
{% for website_id in site.data.expo.lists.home %}
{% assign website = site.data.expo.by_id[website_id] %}
{% assign imageName = website_id | slugify %}
{% assign imagePath = "/images/expo/" | prepend: site.url | append: imageName %}
{% assign size1x = "672x420" %}
{% assign size2x = "1344x840" %}
<a class="bd-mini" href="{{ site.url }}/{{ mini_item.id }}">
<img
src="{{ imagePath }}-{{ size1x }}.jpg"
data-src="{{ imagePath }}-{{ size1x }}.jpg"
data-srcset="{{ imagePath }}-{{ size2x }}.jpg 2x,
{{ imagePath }}-{{ size1x }}.jpg 1x"
width="672"
height="420">
</a>
{% endfor %}
</div>
</div>
</div>
</div>