|
1 | 1 | <!-- 头部 --> |
2 | 2 | <div class="header" id="head"> |
3 | 3 | <%- partial('_partial/menu') %> |
4 | | - <!-- 头部内容 --> |
5 | | - <div class="container"> |
6 | | - <%- image_tag('img/banner-index-new.png', {class: 'home-head', alt: '中国开源码力榜', loading: 'lazy'}) %> |
7 | | - </div> |
| 4 | + <!-- 头部内容:纯 HTML 终端风 hero(banner 图片仅保留给 twitter:image,页面不再展示) --> |
| 5 | + <%- partial('_partial/hero') %> |
8 | 6 | </div> |
9 | 7 |
|
10 | 8 | <div class="container"> |
11 | 9 | <div class="list" id="ranking"> |
12 | | - <div class="main-title">中国开源码力榜</div> |
| 10 | + <div class="main-title" data-i18n-zh="中国开源码力榜" data-i18n-en="China Open Source HeroRank">中国开源码力榜</div> |
13 | 11 |
|
14 | 12 | <div class="mt-4"> |
15 | 13 | <%- partial('_partial/slogan') %> |
|
20 | 18 | <%- partial('_partial/split') %> |
21 | 19 |
|
22 | 20 | <div class="list" id="standard"> |
23 | | - <div class="main-title">评选标准</div> |
| 21 | + <div class="main-title" data-i18n-zh="评选标准" data-i18n-en="Selection Criteria">评选标准</div> |
24 | 22 |
|
25 | 23 | <div class="text text2"> |
26 | 24 | <div class="row justify-content-center mt-4"> |
27 | 25 | <ol class="col-12 col-md-8"> |
28 | | - <li>中国开发者的辨别主要依据 OpenDigger 项目中持续收录的开发者地理位置标签,初始标签依据其 GitHub 上公开的信息由志愿者手工标注辨别,如有错漏,欢迎通过提 <a href="https://github.com/X-lab2017/open-digger/issues" target="_blank">issue</a> 贡献标签。</li> |
29 | | - <li>开发者的贡献度基于 GitHub 全域开发者在当年的协作关系数据计算得到,是一种基于图的开源贡献度计算方法。关于算法的详细介绍可以参考 <a href="https://dl.acm.org/doi/10.1145/3639477.3639734" target="_blank">ICSE 2024 收录论文</a>。</li> |
30 | | - <li>开发者的贡献度取决于其贡献仓库的协作影响力以及其在这些仓库中的贡献比例。一个开发者在高影响力仓库中的贡献比例高,或大量参与不同的仓库,都可以有效提升自己的贡献度。</li> |
| 26 | + <li data-i18n-zh="中国开发者的辨别主要依据 OpenDigger 项目中持续收录的开发者地理位置标签,初始标签依据其 GitHub 上公开的信息由志愿者手工标注辨别,如有错漏,欢迎通过提 <a href='https://github.com/X-lab2017/open-digger/issues' target='_blank'>issue</a> 贡献标签。" data-i18n-en="Chinese developers are identified primarily through the geographic location labels continuously maintained in the OpenDigger project. Initial labels are manually annotated by volunteers based on public GitHub information. If you spot any errors or omissions, please contribute labels by filing an <a href='https://github.com/X-lab2017/open-digger/issues' target='_blank'>issue</a>.">中国开发者的辨别主要依据 OpenDigger 项目中持续收录的开发者地理位置标签,初始标签依据其 GitHub 上公开的信息由志愿者手工标注辨别,如有错漏,欢迎通过提 <a href="https://github.com/X-lab2017/open-digger/issues" target="_blank">issue</a> 贡献标签。</li> |
| 27 | + <li data-i18n-zh="开发者的贡献度基于 GitHub 全域开发者在当年的协作关系数据计算得到,是一种基于图的开源贡献度计算方法。关于算法的详细介绍可以参考 <a href='https://dl.acm.org/doi/10.1145/3639477.3639734' target='_blank'>ICSE 2024 收录论文</a>。" data-i18n-en="Developer contribution scores are computed from the collaboration network of all GitHub developers within the year — a graph-based open source contribution metric. See the <a href='https://dl.acm.org/doi/10.1145/3639477.3639734' target='_blank'>ICSE 2024 paper</a> for a detailed description of the algorithm.">开发者的贡献度基于 GitHub 全域开发者在当年的协作关系数据计算得到,是一种基于图的开源贡献度计算方法。关于算法的详细介绍可以参考 <a href="https://dl.acm.org/doi/10.1145/3639477.3639734" target="_blank">ICSE 2024 收录论文</a>。</li> |
| 28 | + <li data-i18n-zh="开发者的贡献度取决于其贡献仓库的协作影响力以及其在这些仓库中的贡献比例。一个开发者在高影响力仓库中的贡献比例高,或大量参与不同的仓库,都可以有效提升自己的贡献度。" data-i18n-en="A developer's score depends on the collaborative influence of the repositories they contribute to and their share of contributions in those repositories. Contributing a large share to high-impact repositories, or contributing broadly across many repositories, both effectively raise the score.">开发者的贡献度取决于其贡献仓库的协作影响力以及其在这些仓库中的贡献比例。一个开发者在高影响力仓库中的贡献比例高,或大量参与不同的仓库,都可以有效提升自己的贡献度。</li> |
31 | 29 | </ol> |
32 | 30 | </div> |
33 | 31 | </div> |
|
36 | 34 | <%- partial('_partial/split') %> |
37 | 35 |
|
38 | 36 | <div class="list" id="detail"> |
39 | | - <div class="main-title">榜单详情</div> |
| 37 | + <div class="main-title" data-i18n-zh="榜单详情" data-i18n-en="Rankings">榜单详情</div> |
40 | 38 |
|
41 | 39 | <ol class="list-unstyled mt-4"> |
42 | 40 | <% |
|
46 | 44 | for(let rankingItem of site.pages.data) { |
47 | 45 | if (rankingItem.slug) { |
48 | 46 | userMap.set(rankingItem.slug.toString(), rankingItem) |
49 | | - } |
| 47 | + } |
50 | 48 | } |
51 | 49 | %> |
52 | 50 |
|
53 | 51 | <li id="<%= rankingArr.year %>"> |
54 | | - <p class="text-center text-secondary">最近更新于 <%- rankingArr.update %></p> |
| 52 | + <p class="text-center text-secondary"><span data-i18n-zh="最近更新于" data-i18n-en="Last updated:">最近更新于</span> <%- rankingArr.update %></p> |
55 | 53 | <div class="row mt-4"> |
56 | 54 | <% for (let user of rankingArr.annualRanking) { %> |
57 | 55 | <% const userInfo = userMap.get(user.login.toString()) %> |
|
65 | 63 | <%- partial('_partial/split') %> |
66 | 64 |
|
67 | 65 | <div class="list" id="partner"> |
68 | | - <div class="main-title">合作伙伴</div> |
| 66 | + <div class="main-title" data-i18n-zh="合作伙伴" data-i18n-en="Partners">合作伙伴</div> |
69 | 67 |
|
70 | | - <div class="subtitle mt-4">联合发起方</div> |
| 68 | + <div class="subtitle mt-4" data-i18n-zh="联合发起方" data-i18n-en="Co-founders">联合发起方</div> |
71 | 69 | <div class="icons-wrap"> |
72 | 70 | <%- image_tag('img/logo-sf.png', {class: 'icons mb-3', alt: '思否', loading: 'lazy'}) %> |
73 | 71 | <%- image_tag('img/logo-kys.png', {class: 'icons mb-3', alt: '开源社', loading: 'lazy'}) %> |
|
0 commit comments