-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove the "work in progress" sponsors page
- Loading branch information
1 parent
28fb373
commit 2a007cc
Showing
3 changed files
with
46 additions
and
56 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,56 @@ | ||
{% extends "../layouts/default.html.njk" %} | ||
|
||
{% block header %} | ||
{% if page.metadata.title %} | ||
<section class="grid"> | ||
<div class="grid-item-sponsor"> | ||
<h1 class="tl"> | ||
{{ page.metadata.title }} | ||
</h1> | ||
</div> | ||
</section> | ||
{% endif %} | ||
{% endblock %} | ||
|
||
{% block content %} | ||
{% set sponsorTypes = ['double down', 'main', 'supporting', 'community'] %} | ||
|
||
{% for sponsorType in sponsorTypes %} | ||
{% set sponsors = contents.sponsors._.pages | | ||
filterObjects('metadata.sponsor.type', sponsorType) | | ||
filterObjects('metadata.sponsor.reviewed', true) | | ||
sortObjects('metadata.sponsor.order', 100, 'number') %} | ||
{% set firstSponsor = sponsors | first %} | ||
{% set sponsorsTitle = firstSponsor.metadata.sponsor.title %} | ||
{% set sponsorsType = sponsorType | replace(' ', '-') %} | ||
|
||
{% if sponsors.length > 0 %} | ||
<section class="grid"> | ||
<div class="grid-item-sponsor"> | ||
<h2>{{ sponsorsTitle }}</h2> | ||
<div class="sponsors sponsors-{{ sponsorsType }}"> | ||
{% for page in sponsors %} | ||
{% set sponsor = page.metadata.sponsor %} | ||
|
||
<div class="sponsor sponsor-{{ sponsorsType }}" | ||
id="{{ sponsor.id }}"> | ||
<a href="{{ sponsor.link }}" | ||
rel="nofollow" | ||
target="_blank"> | ||
<img src="{{ contents.images.sponsor[sponsor.image.filename].url }}" | ||
alt="{{ sponsor.name }}"> | ||
</a> | ||
</div> | ||
{% endfor %} | ||
</div> | ||
</div> | ||
</section> | ||
{% endif %} | ||
{% endfor %} | ||
|
||
<section class="grid"> | ||
<div class="grid-item-center md-content"> | ||
{{ contents.copy.sponsors['sponsors.md'].html }} | ||
</div> | ||
</section> | ||
|
||
{% endblock %} |