forked from asciidoctor/asciidoctor.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
supporters.html.slim
38 lines (38 loc) · 2.16 KB
/
supporters.html.slim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
---
layout: about
leadin: Superior innovation takes dedication, time and iteration. Thanks to financial contributions from the supporters listed below, the Asciidoctor leadership is able to focus its intellect, passion and creativity into advancing Asciidoctor and driving the community forward.
---
/ TODO
/ - minimize duplicate markup
/ - use small image for pull request backers?
- supporters = YAML.load_file '_config/supporters.yml'
- num_supporters = supporters.map {|c| c[:members]}.flatten.size
- page.title = %(Supporters <small>#{num_supporters}</small>)
- num_cols = { 0 => 1, 1 => 3, 2 => 3, 3 => 3, 4 => 4, 5 => 5 }
- supporters.each_with_index do |category, idx|
h2.category =%(#{category[:category]})
ul class="small-block-grid-#{num_cols[idx]}"
- category[:members].shuffle.each do |member|
li.identity
- if member.key? :avatar_url
- if member.key? :url
a href=(member[:avatar_link] || member[:url]) target='_blank'
img src=member[:avatar_url] alt=member[:name]
p.label
span.name=member[:name]
- if member.key? :github
a.github href="https://github.com/#{member[:github]}" target='_blank': i.fa.fa-github
a.url href=member[:url] target='_blank' =(member[:url_text] || member[:url].sub(/^https?:\/\/([^?]+).*/, '\1'))
- else
img src=member[:avatar_url] alt=member[:name]
p.label
span.name=member[:name]
- if member.key? :github
a.github href="https://github.com/#{member[:github]}" target='_blank': i.fa.fa-github
- else
p.label style="font-size: #{0.9 + (5 - idx) * 0.1}em;"
span.name=member[:name]
- if member.key? :github
a.github href="https://github.com/#{member[:github]}" target='_blank': i.fa.fa-github
h2 Become a Financial Backer!
p We’re working to shape the future of writing and publishing in the field of technical documentation. To achieve this vision, we need your support. To learn about this initiative and how to help, check out the <a href="https://salt.bountysource.com/teams/asciidoctor">campaign page</a>.