Only show confirmed sponsors
This commit is contained in:
parent
f5cb862359
commit
02f4e87c0c
|
@ -99,6 +99,7 @@ sponsors:
|
|||
- name: Drupalize.me
|
||||
logo: drupalize-me.png
|
||||
url: https://drupalize.me
|
||||
confirmed: true
|
||||
bronze:
|
||||
- name: Manifesto
|
||||
logo: tpx-manifesto.svg
|
||||
|
|
|
@ -4,20 +4,24 @@
|
|||
</h2>
|
||||
|
||||
{% for level in site.sponsorship_levels %}
|
||||
{% set sponsors = site.sponsors[level] %}
|
||||
{% set sponsors = [] %}
|
||||
{% for sponsor in site.sponsors[level] if sponsor.confirmed %}
|
||||
{% set sponsors = sponsors|merge([sponsor]) %}
|
||||
{% endfor %}
|
||||
|
||||
{% if sponsors %}
|
||||
<section class="tw-block">
|
||||
<h3 class="tw-visuallyhidden">{{ level|capitalize }} Sponsors</h2>
|
||||
|
||||
<div class="tw-flex tw-flex-wrap tw-items-center tw-justify-center tw--mx-4">
|
||||
<ul class="tw-list-reset tw-flex tw-flex-wrap tw-items-center tw-justify-center tw--mx-4">
|
||||
{% for sponsor in sponsors %}
|
||||
<article class="tw-mb-6 {{ level == 'gold' ? 'tw-w-3/5 md:tw-w-1/3' : 'tw-w-1/2 md:tw-w-1/4' }}">
|
||||
<li class="tw-mb-6 {{ level == 'gold' ? 'tw-w-3/5 md:tw-w-1/3' : 'tw-w-1/2 md:tw-w-1/4' }}">
|
||||
<div class="tw-px-4 tw-mb-4">
|
||||
<img src="/images/sponsors/{{ sponsor.logo }}" alt="{{ sponsor.name }} logo" class="tw-inline-block tw-max-w-full">
|
||||
</div>
|
||||
</article>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</ul>
|
||||
</section>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
|
|
@ -8,7 +8,11 @@ title: Sponsors
|
|||
</div>
|
||||
|
||||
{% for level in site.sponsorship_levels %}
|
||||
{% set sponsors = site.sponsors[level] %}
|
||||
{% set sponsors = [] %}
|
||||
{% for sponsor in site.sponsors[level] if sponsor.confirmed %}
|
||||
{% set sponsors = sponsors|merge([sponsor]) %}
|
||||
{% endfor %}
|
||||
|
||||
{% if sponsors %}
|
||||
<section class="tw-block tw-mb-12">
|
||||
<h2 class="tw-mb-6">{{ level ~ ' Sponsors'|capitalize }}</h2>
|
||||
|
|
Loading…
Reference in a new issue