Skip to content

Commit 9104a35

Browse files
authored
Merge pull request #8 from pycascades/add-sponsor
Add Meta
2 parents 0f2363b + f04501f commit 9104a35

File tree

6 files changed

+33
-24
lines changed

6 files changed

+33
-24
lines changed

content/sponsors/our-sponsors/contents.lr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ show_in_menu: yes
66
---
77
sort_index: 0
88
---
9-
_hidden: yes
9+
_hidden: no
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name: Meta
2+
---
3+
_discoverable: yes
4+
---
5+
about: Our mission is to give people the power to build community and bring the world closer together. Our products empower more than 3 billion people around the world to share ideas, offer support and make a difference. We are constantly iterating, solving problems and working together to connect people all over the world. At Meta Open Source, we aim to empower diverse communities through open source technology.
6+
---
7+
tier: Platinum
8+
---
9+
url: https://www.meta.com
16.9 KB
Loading

templates/macros/sponsor.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{% macro render_sponsor(sponsor) %}
22
<div class="sponsor-entry">
33
<a href="{{ sponsor.url }}" target="_blank">
4-
<img src="{{ sponsor.attachments.get('logo.png') | url }}"/>
4+
<img src="{{ sponsor.attachments.get('logo.png') | url }}" alt="{{sponsor.name}} logo"/>
55
</a>
66
{{ sponsor.about }}
77
</div>
@@ -12,7 +12,7 @@
1212
{% set count = sponsors.count() %}
1313
{% if count > 0 %}
1414
<div class="sponsor-tier">
15-
<h3>{{ tier }}</h3>
15+
<h2>{{ tier }}</h2>
1616
<div class="sponsor-group">
1717
{% for sponsor in site.get("sponsors/our-sponsors").children.filter(F.tier == tier) %}
1818
{{ render_sponsor(sponsor) }}

templates/sponsor.html

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
{% extends 'layout.html' %}
2+
{% from 'macros/sponsor.html' import render_sponsor %}
23

34
{% block title %}
45
{{ this.title }}
56
{% endblock %}
67

78
{% block body %}
8-
<section class="section">
9-
<div class="container">
10-
<div class="content">
11-
<h2>{{ this.name }}</h2>
12-
</div>
13-
</div>
14-
</section>
9+
<main class="section">
10+
<h1>{{ this.name }}</h1>
11+
{{ render_sponsor(this) }}
12+
</main>
1513
{% endblock %}

templates/sponsors.html

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,22 @@
66
{% endblock %}
77

88
{% block body %}
9-
<section class="section">
10-
<div class="container mb-3">
11-
<div class="content">
12-
<h1>Our Sponsors</h1>
9+
<main class="main">
10+
<section class="section">
11+
<div class="container mb-3">
12+
<div class="content">
13+
<h1>Our Sponsors</h1>
14+
</div>
1315
</div>
14-
</div>
15-
<div class="container">
16-
<div class="content">
17-
{{ render_tier("Diamond") }}
18-
{{ render_tier("Platinum") }}
19-
{{ render_tier("Gold") }}
20-
{{ render_tier("Silver") }}
21-
{{ render_tier("Bronze") }}
16+
<div class="container">
17+
<div class="content">
18+
{{ render_tier("Diamond") }}
19+
{{ render_tier("Platinum") }}
20+
{{ render_tier("Gold") }}
21+
{{ render_tier("Silver") }}
22+
{{ render_tier("Bronze") }}
23+
</div>
2224
</div>
23-
</div>
24-
</section>
25+
</section>
26+
</main>
2527
{% endblock %}

0 commit comments

Comments
 (0)