Skip to content

Commit f6b902a

Browse files
committed
小幅修改,美化主頁,打磨細節
1 parent 4a78655 commit f6b902a

File tree

3 files changed

+30
-8
lines changed

3 files changed

+30
-8
lines changed

blog/themes/freewill/_config.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ links:
4141
- title: Rime Wiki
4242
url: https://github.com/rime/home/wiki
4343
icon: "fa fa-github"
44-
- title: Rime on Github
44+
- title: "Rime @ Github"
4545
url: https://github.com/rime
46-
intro: "Rime's Github repository."
46+
intro: Rime 開發者社區
4747
icon: "fa fa-github"
4848
- title: "佛振 @ Github"
49-
url: http://www.github.com/lotem
50-
intro: "Rime 開發者佛振"
49+
url: https://github.com/lotem
50+
intro: Rime 初創開發者佛振
5151
icon: "fa fa-github"
5252

5353
widgets:

blog/themes/freewill/layout/index.ejs

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
</div>
2222
<div class="footnote text-muted">
2323
<%- site.data.downloads.footnote %>
24-
<span class="hidden">&nbsp;&nbsp;<a href="<%- url_for('download') %>">下載更多版本 »</a></span>
24+
<span class="hidden"> <a href="<%- url_for('download') %>">下載更多版本 <i class="fa fa-arrow-down"></i></a></span>
2525
</div>
2626
</div>
2727
<hr />
@@ -70,9 +70,9 @@
7070
</div>
7171
<% } %>
7272
<div>
73-
<a href="https://github.com/rime/home/wiki/UserQuotes">更多說法 »</a>
73+
<a href="https://github.com/rime/home/wiki/UserQuotes">更多說法 <i class="fa fa-arrow-right"></i></a>
7474
&nbsp;&nbsp;
75-
<a href="<%- url_for('discuss') %>">參加討論 »</a>
75+
<a href="<%- url_for('discuss') %>">參加討論 <i class="fa fa-arrow-right"></i></a>
7676
</div>
7777
</div>
7878
<div class="right illustration"></div>

blog/themes/freewill/source/js/notice.js

+23-1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,21 @@ const notices = [
2828
length: 1,
2929
notice: '《汉语拼音方案》是中国人名、地名和中文文献罗马字母拼写法的统一规范,并用于汉字不便或不能使用的领域。'
3030
},
31+
{
32+
start: '2025/04/01 GMT+0800',
33+
length: 1,
34+
mode: 'fool-mode',
35+
notice: 'R²ime 高階開發者測試版震驚出爐!在線試用,可由 rime.io 安裝配方 ',
36+
linkIcon: 'fa fa-flask',
37+
linkUrl: 'https://rime.io'
38+
},
39+
{
40+
start: '2025/04/02 GMT+0800',
41+
length: 3,
42+
notice: '鼠鬚管 爲物雖微情不淺 新詩醉墨時一揮 別後寄我無辭遠 ',
43+
linkIcon: 'fa fa-music',
44+
linkUrl: '/blog/2025/03/01/theme-music/#其三-鼠鬚管'
45+
},
3146
];
3247

3348
(function maybeDisplayNotice() {
@@ -47,7 +62,14 @@ const notices = [
4762
}
4863
if (entry.notice) {
4964
$('.front-matter .slogan').hide();
50-
$('.front-matter .notice').text(entry.notice);
65+
let notice = $('.front-matter .notice');
66+
notice.append($('<span/>').text(entry.notice));
67+
if (entry.linkUrl) {
68+
notice.append($('<a/>').attr({
69+
'href': entry.linkUrl,
70+
'class': entry.linkIcon || 'fa fa-link',
71+
}));
72+
}
5173
}
5274
return;
5375
}

0 commit comments

Comments
 (0)