mirror of
https://github.com/ForkAwesome/Fork-Awesome.git
synced 2025-01-13 00:30:31 +08:00
Adding a paragraph on the number of contributors.
This commit is contained in:
parent
8adf6257a3
commit
fa02b156e8
@ -1,13 +1,19 @@
|
||||
<section id="thanks-to">
|
||||
<h2 class="page-header">Thanks To</h2>
|
||||
<div class="row">
|
||||
<div class="col-md-12 col-sm-12">
|
||||
<div class="col-md-4 col-sm-4">
|
||||
<p>
|
||||
Thanks to <a href="https://twitter.com/davegandy">@davegandy</a> for his
|
||||
original work on Font Awesome and to
|
||||
original work on {{ site.fontawesome.name }} and to
|
||||
<a href="https://twitter.com/gtagliala">@gtagliala</a> for managing pull
|
||||
requests and issues on the Font Awesome Github repo.
|
||||
</p>
|
||||
</div>
|
||||
<div class="col-md-8 col-sm-8">
|
||||
<p>
|
||||
Thanks to the still growing community of <a href="https://github.com/ForkAwesome/Fork-Awesome/blob/master/CONTRIBUTORS.md">{{ page.total_contributors }} contributors</a> who've carried this project from the early days of {{ site.fontawesome.name }} and who have joined this project since the fork.
|
||||
If you feel your contribution has not been recognized. Please file an issue, we'll happily add you to the list.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
@ -9,9 +9,9 @@ module Jekyll
|
||||
all_contributors_rc = File.read(File.join(Dir.pwd, '.all-contributorsrc'))
|
||||
all_contributors = JSON.parse(all_contributors_rc)
|
||||
total_contributors = all_contributors['contributors'].length
|
||||
|
||||
readme = site.pages.detect {|page| page.name == 'README.md-nobuild'}
|
||||
readme.data['total_contributors'] = total_contributors
|
||||
site.pages.each do |page|
|
||||
page.data['total_contributors'] = total_contributors
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user