浏览代码

Adding a paragraph on the number of contributors.

Julien Deswaef 6 年之前
父节点
当前提交
fa02b156e8
共有 2 个文件被更改,包括 11 次插入5 次删除
  1. 8 2
      src/doc/_includes/thanks-to.html
  2. 3 3
      src/doc/_plugins/all-contributors-generator.rb

+ 8 - 2
src/doc/_includes/thanks-to.html

@@ -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>

+ 3 - 3
src/doc/_plugins/all-contributors-generator.rb

@@ -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