diff --git a/_config.yml b/_config.yml index 9abd385f..b777fa1e 100644 --- a/_config.yml +++ b/_config.yml @@ -123,6 +123,9 @@ aliases: luke-jr: Luke-Jr laanwj: Wladimir J. van der Laan mikehearn: Mike Hearn + saivann: Saïvann Carignan + harding: David Harding + gwb3: Garland William Binns III safe: false server_port: 4000 diff --git a/_less/ie.css b/_less/ie.css index 67ecad6a..33688bff 100644 --- a/_less/ie.css +++ b/_less/ie.css @@ -269,6 +269,11 @@ body{ height:16px; } +.credit p{ + zoom:1; + display:inline; +} + .foundation{ width:500px; } diff --git a/_less/rtl.less b/_less/rtl.less index 931270f8..1b494da2 100644 --- a/_less/rtl.less +++ b/_less/rtl.less @@ -77,6 +77,9 @@ h2 .rssicon{ .contributors{ text-align:right; } +.credit{ + text-align:right; +} .downloadbox div{ text-align:right; } diff --git a/_less/screen.less b/_less/screen.less index b0060b3d..8f5dd919 100644 --- a/_less/screen.less +++ b/_less/screen.less @@ -995,6 +995,21 @@ table td,table th{ white-space:nowrap; } +.credit{ + text-align:left; + margin:-10px 0; +} +.credit p{ + display:inline-block; + width:275px; + vertical-align:top; + margin:10px 0; +} +.credit span{ + display:block; + color:#aaa; +} + .resources{ text-align:left; } diff --git a/_plugins/contributors.rb b/_plugins/contributors.rb index dea97c23..10434573 100644 --- a/_plugins/contributors.rb +++ b/_plugins/contributors.rb @@ -9,14 +9,14 @@ module Jekyll class CategoryGenerator < Generator - def contributors(aliases) + def contributors(repo, aliases) contributors = [] # Call GitHub API with 100 results per page page = 1 data = [] while page < 10 do begin - ar = JSON.parse(open("https://api.github.com/repos/bitcoin/bitcoin/contributors?page=#{page}&per_page=100","User-Agent"=>"Ruby/#{RUBY_VERSION}").read) + ar = JSON.parse(open("https://api.github.com/repos/"+repo+"/contributors?page=#{page}&per_page=100","User-Agent"=>"Ruby/#{RUBY_VERSION}").read) # Prevent any error to stop the build process, return an empty array instead rescue print 'GitHub API Call Failed!' @@ -80,18 +80,21 @@ module Jekyll def generate(site) # Set site.contributors global variables for liquid/jekyll class << site - attr_accessor :contributors + attr_accessor :corecontributors + attr_accessor :sitecontributors alias contrib_site_payload site_payload def site_payload h = contrib_site_payload payload = h["site"] - payload["contributors"] = self.contributors + payload["corecontributors"] = self.corecontributors + payload["sitecontributors"] = self.sitecontributors h["site"] = payload h end end - # Populate site.contributors array - site.contributors = contributors(site.config['aliases']) + # Populate site.corecontributors and site.sitecontributors arrays + site.corecontributors = contributors('bitcoin/bitcoin',site.config['aliases']) + site.sitecontributors = contributors('bitcoin/bitcoin.org',site.config['aliases']) end end diff --git a/_templates/about-us.html b/_templates/about-us.html index e97b840e..a3b20299 100644 --- a/_templates/about-us.html +++ b/_templates/about-us.html @@ -24,3 +24,41 @@ id: about-us

{% translate help %}

{% translate helptxt %}

+ +

{% translate maintenance %}

+ +
+

Saïvann CarignanWebsite maintenance

+

Garland William Binns IIITranslation maintenance

+

David HardingDocumentation maintenance

+
+ +

{% translate documentation %}

+ +
+

David HardingCoordination and writing

+

Greg SandersWriting

+
+ +

{% translate translation %}

+ +
+

Garland William Binns IIIMaintenance

+

Simon Alexander HinterreiterGerman

+

Matija MaziSlovenian

+

Mihai OnosieRomanian

+

Boštjan PirnarSlovenian

+

Thomas PrydsDanish

+
+ +

{% translate github %}

+ +
+ {% for c in site.sitecontributors %} +
+
{% if c.gravatar_id %}icon{% else %}icon{% endif %}
+
{{ c.name | htmlescape }}
+
({{ c.contributions }})
+
+ {% endfor %} +
diff --git a/_templates/development.html b/_templates/development.html index f22465b8..d383e18a 100755 --- a/_templates/development.html +++ b/_templates/development.html @@ -63,7 +63,7 @@ id: development

{% translate contributors %}

{% translate contributorsorder %}

- {% for c in site.contributors %} + {% for c in site.corecontributors %}
{% if c.gravatar_id %}icon{% else %}icon{% endif %}
{{ c.name | htmlescape }}
diff --git a/_translations/en.yml b/_translations/en.yml index c73b5ed0..05d11996 100644 --- a/_translations/en.yml +++ b/_translations/en.yml @@ -16,7 +16,11 @@ en: missiontxt6: "Improve Bitcoin worldwide accessibility with internationalization." missiontxt7: "Remain a neutral informative resource about Bitcoin." help: "Help us" - helptxt: "You can report any problem or help to improve bitcoin.org on GitHub by opening an issue or a pull request in English. When submitting a pull request, please take required time to discuss your changes and adapt your work. You can help with translations by joining a team on Transifex. Please don't ask for promotion for your personal business or website, except for special cases like conferences." + helptxt: "You can report any problem or help to improve bitcoin.org on GitHub by opening an issue or a pull request in English. When submitting a pull request, please take required time to discuss your changes and adapt your work. You can help with translations by joining a team on Transifex. Please don't ask for promotion for your personal business or website, except for special cases like conferences. Many thanks to all contributors who are spending time improving bitcoin.org!" + maintenance: "Maintenance" + documentation: "Documentation" + translation: "Translation" + github: "Contributors on GitHub" bitcoin-for-businesses: title: "Bitcoin for Businesses - Bitcoin" pagetitle: "Bitcoin for Businesses"