Skip to content

Commit 6a1d0c1

Browse files
committed
HomePage & Header/Footer
1 parent 2faa8f7 commit 6a1d0c1

File tree

7 files changed

+145
-121
lines changed

7 files changed

+145
-121
lines changed

_data/navigation.yml

Lines changed: 69 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -1,155 +1,155 @@
1-
- header: Get Started
1+
- header: 快速入门
22
url: /getting-started/
33
# ------------------------------------------------------------------------------
4-
- header: Blog
4+
- header: 博客
55
url: /blog/
66
# ------------------------------------------------------------------------------
7-
- header: Documentation
7+
- header: 文档
88
url: /documentation/
99
# ------------------------------------------------------------------------------
10-
- header: Packages
10+
- header: 软件包
1111
url: /packages/
1212
# ------------------------------------------------------------------------------
13-
- header: Tools
13+
- header: 工具
1414
url: /tools/
1515
# ------------------------------------------------------------------------------
16-
- header: Community
16+
- header: 社区
1717
url: /community/
1818
pages:
19-
- title: Overview
19+
- title: 概览
2020
url: /community/
21-
- title: Swift Evolution
21+
- title: Swift 演进
2222
url: /swift-evolution/
23-
- title: Diversity
23+
- title: 多元化
2424
url: /diversity/
2525
sections:
26-
- title: Mission
26+
- title: 使命
2727
name: mission
28-
- title: Workgroup
28+
- title: 工作组
2929
name: workgroup
30-
- title: Community Groups
30+
- title: 社区小组
3131
name: community-groups
32-
- title: Events
32+
- title: 活动
3333
name: events
34-
- title: Community-focused blog on Swift.org
34+
- title: Swift.org 社区博客
3535
name: community-focused-blog-on-swiftorg
36-
- title: Community Participation
36+
- title: 社区参与
3737
name: community-participation
38-
- title: Mentorship
38+
- title: 导师计划
3939
url: /mentorship/
4040
sections:
41-
- title: Current Program
41+
- title: 当前项目
4242
name: current-program
43-
- title: Frequently Asked Questions
43+
- title: 常见问题
4444
name: frequently-asked-questions
45-
- title: Contributing
45+
- title: 贡献指南
4646
url: /contributing/
4747
sections:
48-
- title: Answering Questions
48+
- title: 解答问题
4949
name: answering-questions
50-
- title: Reporting Bugs
50+
- title: 报告 Bug
5151
name: reporting-bugs
52-
- title: Triaging Bugs
52+
- title: Bug 分类
5353
name: triaging-bugs
54-
- title: Blog Post Contributions
54+
- title: 博客贡献
5555
name: website-and-blog-post-contributions
56-
- title: Swift Evolution
56+
- title: Swift 演进
5757
name: evolution-process
58-
- title: Good First Issues
58+
- title: 适合新手的议题
5959
name: good-first-issues
60-
- title: Contributing Code
60+
- title: 代码贡献
6161
name: contributing-code
62-
- title: Adding External Library Dependencies
62+
- title: 添加外部依赖库
6363
name: adding-external-library-dependencies
64-
- title: LLVM and Swift
64+
- title: LLVM Swift
6565
name: llvm-and-swift
66-
- section: Steering Groups
67-
- title: Language
66+
- section: 指导小组
67+
- title: 语言组
6868
url: /language-steering-group/
6969
sections:
70-
- title: Charter
70+
- title: 章程
7171
name: charter
72-
- title: Membership
72+
- title: 成员构成
7373
name: membership
74-
- title: Decision making
74+
- title: 决策机制
7575
name: decision-making
76-
- title: Communication
76+
- title: 交流方式
7777
name: communication
78-
- title: Evolution process
78+
- title: 演进流程
7979
name: evolution-process
80-
- title: Community participation
80+
- title: 社区参与
8181
name: community-participation
82-
- title: Platform
82+
- title: 平台组
8383
url: /platform-steering-group/
8484
sections:
85-
- title: Charter
85+
- title: 章程
8686
name: charter
87-
- title: Membership
87+
- title: 成员构成
8888
name: membership
89-
- title: Evolution
89+
- title: 演进
9090
name: evolution
91-
- title: Communication
91+
- title: 交流方式
9292
name: communication
93-
- title: Platform Evolution process
93+
- title: 平台演进流程
9494
name: platform-evolution-process
95-
- title: Community participation
95+
- title: 社区参与
9696
name: community-participation
97-
- section: Workgroups
98-
- title: Contributor Experience
97+
- section: 工作组
98+
- title: 贡献者体验
9999
url: /contributor-experience-workgroup/
100-
- title: Server
100+
- title: 服务器
101101
url: /sswg/
102102
sections:
103-
- title: Community Participation
103+
- title: 社区参与
104104
name: community-participation
105-
- title: Governance
105+
- title: 治理
106106
name: governance
107-
- title: Website workgroup
107+
- title: 网站工作组
108108
name: website-workgroup
109-
- title: Website
109+
- title: 网站
110110
url: /website/
111111
sections:
112-
- title: Community Participation
112+
- title: 社区参与
113113
name: community-participation
114-
- title: Governance
114+
- title: 治理
115115
name: governance
116-
- title: Website workgroup
116+
- title: 网站工作组
117117
name: website-workgroup
118-
- title: C++ Interoperability
118+
- title: C++ 互操作性
119119
url: /cxx-interop-workgroup/
120120
sections:
121-
- title: Charter
121+
- title: 章程
122122
name: charter
123-
- title: Membership
123+
- title: 成员构成
124124
name: membership
125-
- title: Communication
125+
- title: 交流方式
126126
name: communication
127-
- title: Documentation
127+
- title: 文档
128128
url: /documentation-workgroup/
129129
sections:
130-
- title: Charter
130+
- title: 章程
131131
name: charter
132-
- title: Membership
132+
- title: 成员构成
133133
name: membership
134-
- title: Communication
134+
- title: 交流方式
135135
name: communication
136-
- title: Community Participation
136+
- title: 社区参与
137137
name: community-participation
138138
- title: Foundation
139139
url: /foundation-workgroup/
140-
- section: Governance
141-
- title: Code of Conduct
140+
- section: 管理
141+
- title: 行为准则
142142
url: /code-of-conduct/
143-
- title: License
143+
- title: 许可协议
144144
url: /legal/license.html
145-
- title: Security
145+
- title: 安全
146146
url: /support/security.html
147147
sections:
148-
- title: Security Process
148+
- title: 安全流程
149149
name: security-process
150-
- title: Security Updates
150+
- title: 安全更新
151151
name: security-updates
152152
# ------------------------------------------------------------------------------
153-
- header: Install
153+
- header: 安装
154154
url: /install/
155155
isCta: true

_includes/footer.html

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<footer role="contentinfo">
22
<div class="footer-content">
33
{{ include.licenseinfo }}
4-
<p class="copyright">Copyright © {{ site.time | date: '%Y' }} Apple Inc. All rights reserved.</p>
5-
<p class="trademark">Swift and the Swift logo are trademarks of Apple Inc.</p>
4+
<p class="copyright">版权所有 © {{ site.time | date: '%Y' }} SwiftGG 翻译组 | 翻译自 <a href="https://swift.org">Swift.org</a></p>
5+
<p class="trademark">Swift Swift 标识是 Apple Inc. 的注册商标。</p>
66
<p class="privacy">
7-
<a href="//www.apple.com/privacy/privacy-policy/">Privacy Policy</a>
8-
<a href="//www.apple.com/legal/privacy/en-ww/cookies/">Cookies</a>
7+
<a href="//www.apple.com/privacy/privacy-policy/">隐私政策(英文)</a>
8+
<a href="//www.apple.com/legal/privacy/en-ww/cookies/">使用条款(英文)</a>
99
</p>
1010
</div>
1111
<div class="footer-other">
@@ -15,23 +15,23 @@
1515
tabindex="0"
1616
id="color-scheme-toggle"
1717
>
18-
<legend class="visuallyhidden">Color scheme preference</legend>
18+
<legend class="visuallyhidden">主题选择器</legend>
1919
<label for="scheme-light">
2020
<input id="scheme-light" type="radio" name="color-scheme-preference" value="light">
21-
<span class="color-scheme-toggle-label">Light</span>
21+
<span class="color-scheme-toggle-label">明亮</span>
2222
</label>
2323
<label for="scheme-dark">
2424
<input id="scheme-dark" type="radio" name="color-scheme-preference" value="dark">
25-
<span class="color-scheme-toggle-label">Dark</span>
25+
<span class="color-scheme-toggle-label">黑暗</span>
2626
</label>
2727
<label for="scheme-auto" id="scheme-auto-wrapper">
2828
<input id="scheme-auto" type="radio" name="color-scheme-preference" value="auto">
29-
<span class="color-scheme-toggle-label">Auto</span>
29+
<span class="color-scheme-toggle-label">自动</span>
3030
</label>
3131
</form>
32-
<aside>
32+
<!-- <aside>
3333
<a href="https://twitter.com/swiftlang" rel="nofollow" title="Follow @SwiftLang on Twitter"><i class="twitter"></i></a>
3434
<a href="/atom.xml" title="Subscribe to Site Updates"><i class="feed"></i></a>
35-
</aside>
35+
</aside> -->
3636
</div>
3737
</footer>

_includes/logo.html

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,23 @@
1-
<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 191.186 59.391"><path fill="#F05138" d="M59.387 16.45a82.463 82.463 0 0 0-.027-1.792c-.035-1.301-.112-2.614-.343-3.9-.234-1.307-.618-2.523-1.222-3.71a12.464 12.464 0 0 0-5.453-5.452C51.156.992 49.941.609 48.635.374c-1.288-.232-2.6-.308-3.902-.343a85.714 85.714 0 0 0-1.792-.027C42.23 0 41.52 0 40.813 0H18.578c-.71 0-1.419 0-2.128.004-.597.004-1.195.01-1.792.027-.325.009-.651.02-.978.036-.978.047-1.959.133-2.924.307-.98.176-1.908.436-2.811.81A12.503 12.503 0 0 0 3.89 3.89a12.46 12.46 0 0 0-2.294 3.158C.992 8.235.61 9.45.374 10.758c-.231 1.286-.308 2.599-.343 3.9a85.767 85.767 0 0 0-.027 1.792C-.001 17.16 0 17.869 0 18.578v22.235c0 .71 0 1.418.004 2.128.004.597.01 1.194.027 1.791.035 1.302.112 2.615.343 3.901.235 1.307.618 2.523 1.222 3.71a12.457 12.457 0 0 0 5.453 5.453c1.186.603 2.401.986 3.707 1.22 1.287.232 2.6.31 3.902.344.597.016 1.195.023 1.793.027.709.005 1.417.004 2.127.004h22.235c.709 0 1.418 0 2.128-.004.597-.004 1.194-.011 1.792-.027 1.302-.035 2.614-.112 3.902-.343 1.306-.235 2.521-.618 3.707-1.222a12.461 12.461 0 0 0 5.453-5.452c.604-1.187.987-2.403 1.222-3.71.231-1.286.308-2.6.343-3.9.016-.598.023-1.194.027-1.792.004-.71.004-1.419.004-2.129V18.578c0-.71 0-1.419-.004-2.128z"/><path fill="#FFF" d="m47.06 36.66-.004-.004c.066-.224.134-.446.191-.675 2.465-9.821-3.55-21.432-13.731-27.546 4.461 6.048 6.434 13.374 4.681 19.78-.156.571-.344 1.12-.552 1.653-.225-.148-.51-.316-.89-.527 0 0-10.127-6.252-21.103-17.312-.288-.29 5.852 8.777 12.822 16.14-3.284-1.843-12.434-8.5-18.227-13.802.712 1.187 1.558 2.33 2.489 3.43C17.573 23.932 23.882 31.5 31.44 37.314c-5.31 3.25-12.814 3.502-20.285.003a30.646 30.646 0 0 1-5.193-3.098c3.162 5.058 8.033 9.423 13.96 11.97 7.07 3.039 14.1 2.833 19.336.05l-.004.007c.024-.016.055-.032.08-.047.214-.116.428-.234.636-.358 2.516-1.306 7.485-2.63 10.152 2.559.654 1.27 2.041-5.46-3.061-11.74z"/><path id="logotype" d="M81.93 38.542c.465 4.12 4.394 6.822 9.852 6.822 5.185 0 8.924-2.701 8.924-6.44 0-3.22-2.265-5.185-7.478-6.495l-5.048-1.282c-7.26-1.801-10.534-5.077-10.534-10.48 0-6.658 5.813-11.27 14.082-11.27 8.022 0 13.726 4.639 13.917 11.325h-5.32c-.41-4.093-3.74-6.604-8.734-6.604-4.94 0-8.378 2.538-8.378 6.249 0 2.892 2.13 4.612 7.369 5.95l4.202 1.09c8.133 1.993 11.462 5.159 11.462 10.863 0 7.259-5.759 11.816-14.928 11.816-8.514 0-14.327-4.53-14.763-11.543h5.376zM140.049 49.43h-5.35l-6.249-21.776h-.109L122.12 49.43h-5.348l-7.914-28.518h5.184l5.513 22.896h.11l6.221-22.896h5.021l6.277 22.896h.11l5.512-22.896h5.13L140.05 49.43zM151.39 13.244c0-1.718 1.419-3.11 3.138-3.11 1.746 0 3.165 1.392 3.165 3.11 0 1.72-1.419 3.139-3.165 3.139a3.157 3.157 0 0 1-3.139-3.139zm.545 7.669h5.213V49.43h-5.213V20.913zM191.186 25.116v-4.204h-5.513v-6.821h-5.185v6.821h-9.964v-2.51c.027-2.538 1.01-3.603 3.357-3.603.764 0 1.528.083 2.156.192v-4.094a18.193 18.193 0 0 0-2.756-.218c-5.568 0-7.915 2.32-7.915 7.642v2.591h-3.983v4.204h3.983V49.43h5.185V25.116H180.488v16.838c0 5.512 2.101 7.64 7.559 7.64 1.174 0 2.51-.082 3.111-.218v-4.257c-.355.055-1.392.137-1.965.137-2.428 0-3.52-1.147-3.52-3.712V25.116h5.513z"/></svg>
1+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 263.97 60.1">
2+
<g id="Layer_3" data-name="Layer 3">
3+
<rect width="60.1" height="60.1" rx="16.88" ry="16.88" style="fill: #f05138;"/>
4+
</g>
5+
<g id="Layer_4" data-name="Layer 4">
6+
<path d="M31.13,31.94c.04-.14.08-.27.12-.41,1.52-6.04-2.18-13.17-8.44-16.93,2.74,3.72,3.95,8.22,2.88,12.16-.1.35-.21.69-.34,1.02-.14-.09-.31-.19-.55-.32,0,0-6.23-3.84-12.97-10.64-.18-.18,3.6,5.4,7.88,9.92-2.02-1.13-7.64-5.23-11.2-8.48.44.73.96,1.43,1.53,2.11,2.97,3.77,6.85,8.42,11.5,12-3.26,2-7.88,2.15-12.47,0-1.14-.53-2.2-1.17-3.19-1.9,1.94,3.11,4.94,5.79,8.58,7.36,4.35,1.87,8.67,1.74,11.89.03h0s.02-.01.03-.02c.14-.08.29-.16.43-.24,1.55-.8,4.59-1.59,6.22,1.59.4.78,1.25-3.36-1.88-7.22,0,0,0,0,0,0Z" style="fill: #fff;"/>
7+
<polygon points="41.32 21.09 39.55 18.18 36.24 18.97 38.45 16.39 36.68 13.48 39.82 14.79 42.04 12.21 41.76 15.6 44.9 16.91 41.59 17.7 41.32 21.09" style="fill: #fff;"/>
8+
<polygon points="46.69 28.93 46.63 25.53 43.38 24.53 46.59 23.42 46.53 20.02 48.58 22.74 51.79 21.63 49.84 24.42 51.89 27.13 48.64 26.14 46.69 28.93" style="fill: #fff;"/>
9+
<polygon points="45.36 39.26 46.38 36.01 43.61 34.04 47.01 34 48.02 30.76 49.11 33.98 52.51 33.95 49.78 35.97 50.86 39.2 48.09 37.23 45.36 39.26" style="fill: #fff;"/>
10+
<polygon points="36.08 46.35 38.02 43.56 35.98 40.85 39.23 41.84 41.18 39.05 41.24 42.45 44.49 43.44 41.28 44.55 41.34 47.95 39.29 45.24 36.08 46.35" style="fill: #fff;"/>
11+
</g>
12+
<g id="logotype">
13+
<g>
14+
<path d="M80.41,49.3c-1.84,0-3.56-.22-5.15-.68-1.6-.45-3.02-1.08-4.27-1.9-1.25-.81-2.28-1.72-3.1-2.73-.82-1-1.34-2.06-1.59-3.17l6.97-2.07c.45,1.18,1.25,2.19,2.39,3.04,1.15.85,2.58,1.29,4.32,1.32,1.84.03,3.34-.36,4.5-1.19s1.74-1.9,1.74-3.22c0-1.14-.46-2.1-1.38-2.88s-2.18-1.38-3.77-1.79l-4.73-1.24c-1.77-.45-3.33-1.13-4.68-2.05-1.35-.92-2.41-2.05-3.17-3.4-.76-1.35-1.15-2.92-1.15-4.72,0-3.43,1.14-6.1,3.41-8.02s5.49-2.88,9.65-2.88c2.32,0,4.36.34,6.11,1.01,1.75.67,3.22,1.64,4.4,2.88,1.18,1.25,2.08,2.72,2.7,4.41l-6.92,2.13c-.42-1.18-1.18-2.18-2.29-3.01-1.11-.83-2.51-1.25-4.21-1.25s-3.1.4-4.08,1.19c-.99.8-1.48,1.92-1.48,3.37,0,1.14.39,2.04,1.17,2.7.78.66,1.85,1.16,3.2,1.51l4.79,1.19c3.12.76,5.55,2.13,7.28,4.1,1.73,1.97,2.6,4.17,2.6,6.59,0,2.15-.52,4.02-1.56,5.63-1.04,1.61-2.55,2.87-4.53,3.77-1.98.9-4.37,1.35-7.18,1.35Z"/>
15+
<path d="M104.12,48.68l-8.84-25.96h6.97l8.27,25.96h-6.4ZM104.8,48.68l8.32-25.96h5.98l-8.22,25.96h-6.09ZM122.07,48.68l-8.12-25.96h5.93l8.27,25.96h-6.09ZM122.07,48.68l8.64-25.96h6.97l-8.84,25.96h-6.76Z"/>
16+
<path d="M143.97,18.51c-1.04,0-1.96-.39-2.76-1.17-.79-.78-1.19-1.71-1.19-2.78s.4-2,1.19-2.78c.8-.78,1.72-1.17,2.76-1.17s2,.39,2.78,1.17c.78.78,1.17,1.71,1.17,2.78s-.39,2-1.17,2.78c-.78.78-1.71,1.17-2.78,1.17ZM140.54,48.68v-25.96h6.86v25.96h-6.86Z"/>
17+
<path d="M150.99,28.22v-5.5h17.58v5.5h-17.58ZM155.31,48.68v-28.56c0-2.77.71-4.92,2.13-6.46s3.59-2.31,6.5-2.31c1.01,0,2.07.17,3.2.52,1.12.35,2.16.76,3.09,1.25l-2.55,4.93c-.55-.28-1.06-.49-1.51-.62-.45-.14-.87-.21-1.25-.21-.93,0-1.63.32-2.08.96-.45.64-.68,1.67-.68,3.09v27.42h-6.86Z"/>
18+
<path d="M169.88,28.53v-5.81h17.58v5.81h-17.58ZM182.83,49.3c-2.88,0-5.05-.71-6.53-2.13-1.48-1.42-2.21-3.44-2.21-6.08V14.62h6.87v24.98c0,1.11.24,1.94.73,2.51.49.57,1.19.86,2.13.86.35,0,.73-.08,1.15-.24.42-.15.85-.39,1.3-.7l2.39,5.14c-.84.62-1.76,1.13-2.78,1.53-1.02.4-2.04.6-3.04.6Z"/>
19+
<path d="M209.88,49.3c-3.71,0-6.99-.81-9.86-2.42-2.86-1.61-5.11-3.82-6.74-6.64s-2.44-6.07-2.44-9.74.81-6.91,2.44-9.74c1.63-2.82,3.88-5.04,6.74-6.65s6.15-2.42,9.86-2.42c2.22,0,4.27.33,6.14.99,1.87.66,3.53,1.57,4.97,2.73s2.65,2.48,3.62,3.97l-5.82,3.63c-.59-.93-1.36-1.76-2.32-2.49-.95-.73-2-1.3-3.15-1.71s-2.29-.62-3.44-.62c-2.29,0-4.32.53-6.09,1.58s-3.15,2.5-4.16,4.34c-1,1.83-1.51,3.96-1.51,6.39s.5,4.52,1.48,6.39c.99,1.87,2.38,3.33,4.19,4.39,1.81,1.06,3.88,1.58,6.24,1.58,1.84,0,3.48-.36,4.92-1.09,1.44-.73,2.57-1.75,3.41-3.07.83-1.32,1.25-2.84,1.25-4.57l6.76-1.04c0,3.43-.7,6.35-2.11,8.78-1.4,2.43-3.35,4.27-5.82,5.53-2.48,1.26-5.33,1.9-8.56,1.9ZM211.07,34.76v-5.56h15.29v4.42l-3.85,1.14h-11.45Z"/>
20+
<path d="M247.48,49.3c-3.71,0-6.99-.81-9.86-2.42-2.86-1.61-5.11-3.82-6.74-6.64s-2.44-6.07-2.44-9.74.81-6.91,2.44-9.74c1.63-2.82,3.88-5.04,6.74-6.65s6.15-2.42,9.86-2.42c2.22,0,4.27.33,6.14.99,1.87.66,3.53,1.57,4.97,2.73s2.65,2.48,3.62,3.97l-5.82,3.63c-.59-.93-1.36-1.76-2.32-2.49-.95-.73-2-1.3-3.15-1.71s-2.29-.62-3.44-.62c-2.29,0-4.32.53-6.09,1.58s-3.15,2.5-4.16,4.34c-1,1.83-1.51,3.96-1.51,6.39s.5,4.52,1.48,6.39c.99,1.87,2.38,3.33,4.19,4.39,1.81,1.06,3.88,1.58,6.24,1.58,1.84,0,3.48-.36,4.92-1.09,1.44-.73,2.57-1.75,3.41-3.07.83-1.32,1.25-2.84,1.25-4.57l6.76-1.04c0,3.43-.7,6.35-2.11,8.78-1.4,2.43-3.35,4.27-5.82,5.53-2.48,1.26-5.33,1.9-8.56,1.9ZM248.68,34.76v-5.56h15.29v4.42l-3.85,1.14h-11.45Z"/>
21+
</g>
22+
</g>
23+
</svg>

_includes/navigation.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ <h1 id="logo">
4444
</li>
4545
{% endfor %}
4646
</ul>
47-
<button id="menu-toggle" class="menu-item menu-toggle open" aria-expanded="false" aria-label="Toggle Navigation Menu"></button>
47+
<button id="menu-toggle" class="menu-item menu-toggle open" aria-expanded="false" aria-label="切换导航菜单"></button>
4848
</nav>
4949
</div>
5050

@@ -60,7 +60,7 @@ <h1 id="logo">
6060
{% endif %}
6161

6262
{% if nav.pages %}
63-
<button class="section-toggle" aria-expanded="false" aria-label="Toggle {{ nav.header }} Section">
63+
<button class="section-toggle" aria-expanded="false" aria-label="切换 {{ nav.header }} 栏目">
6464
&#9663;
6565
</button>
6666
{% endif %}
@@ -86,4 +86,4 @@ <h1 id="logo">
8686
{% endfor %}
8787
</ul>
8888
</nav>
89-
</header>
89+
</header>

assets/images/logo-dark.png

5.37 KB
Loading

assets/images/logo.png

5.62 KB
Loading

0 commit comments

Comments
 (0)