mirror of
https://github.com/ForkAwesome/Fork-Awesome
synced 2024-06-08 00:32:31 +02: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">
|
<section id="thanks-to">
|
||||||
<h2 class="page-header">Thanks To</h2>
|
<h2 class="page-header">Thanks To</h2>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12 col-sm-12">
|
<div class="col-md-4 col-sm-4">
|
||||||
<p>
|
<p>
|
||||||
Thanks to <a href="https://twitter.com/davegandy">@davegandy</a> for his
|
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
|
<a href="https://twitter.com/gtagliala">@gtagliala</a> for managing pull
|
||||||
requests and issues on the Font Awesome Github repo.
|
requests and issues on the Font Awesome Github repo.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</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>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
|
@ -9,9 +9,9 @@ module Jekyll
|
||||||
all_contributors_rc = File.read(File.join(Dir.pwd, '.all-contributorsrc'))
|
all_contributors_rc = File.read(File.join(Dir.pwd, '.all-contributorsrc'))
|
||||||
all_contributors = JSON.parse(all_contributors_rc)
|
all_contributors = JSON.parse(all_contributors_rc)
|
||||||
total_contributors = all_contributors['contributors'].length
|
total_contributors = all_contributors['contributors'].length
|
||||||
|
site.pages.each do |page|
|
||||||
readme = site.pages.detect {|page| page.name == 'README.md-nobuild'}
|
page.data['total_contributors'] = total_contributors
|
||||||
readme.data['total_contributors'] = total_contributors
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue