File tree Expand file tree Collapse file tree 5 files changed +47
-30
lines changed Expand file tree Collapse file tree 5 files changed +47
-30
lines changed Original file line number Diff line number Diff line change 99 < meta name ="syntax " content ="mkd ">
1010 < meta name ="settings " content ="use_css,pre_wrap,expand_tabs ">
1111 < link rel ="stylesheet " type ="text/css " href ="/style.css " media ="screen ">
12+ < script src =./js/fetch.js > </ script >
1213
1314 <!--[if lt IE 9]>
1415 <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
1516 <![endif]-->
1617
1718 < meta name ="viewport " content ="width=device-width, initial-scale=1, user-scalable=no ">
18- < script src =./js/fetch.js > </ script >
1919
2020</ head >
2121< body >
Original file line number Diff line number Diff line change 22
33{{ content }}
44
5- < h2 > ## 如有 Vim 使用相關問題,歡迎至 < a href ='https://github.com/vim-tw/ama/issues ' target ='_blank '> AMA</ a > 提問</ h2 >
6-
7- < ul id ="amas "> </ ul >
8-
9- < script >
10- fetch ( 'https://api.github.com/repos/vim-tw/ama/issues' ) . then ( function ( response ) {
11- return response . json ( ) ;
12- } )
13- . then ( function ( amas ) {
14- var content = '' ;
15- amas . forEach ( function ( ama , index , array ) {
16- if ( ama . pull_request !== undefined ) { return ; }
17- content += `<li><a href="${ ama . html_url } ">${ ama . title } </a> <small>from ${ ( new Date ( ama . created_at ) . toLocaleString ( ) ) } </small></li>` ;
18- } ) ;
19- return content ;
20- } )
21- . catch ( function ( content ) {
22- return "<p>請點選上方連結以觀看AMA!</p>" ;
23- } )
24- . then ( function ( content ) {
25- document . getElementById ( 'amas' ) . innerHTML += content ;
26- } ) ;
27- </ script >
28-
295{% include footer.html %}
Original file line number Diff line number Diff line change 11$font-size : 18px ;
2+ $title-color : #70b950 ;
3+ $pound : " data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' version='1.1' height='40px' width='13px'><text x='0' y='17' fill='%2370b950' font-size='18' font-weight='600'>%23</text></svg>" ;
4+ $pound-offset : " data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' version='1.1' height='40px' width='28px'><text x='0' y='17' fill='%2370b950' font-size='18' font-weight='600'>%23</text></svg>" ;
Original file line number Diff line number Diff line change 11---
22---
33
4- # \# Vim 正體中文社群
4+ # Vim 正體中文社群
55
66討論及分享 Vim 相關技巧的小圈圈,請儘量使用正體中文發言,謝謝。
77
8- ## \#\# 聯繫管道
8+ ## 聯繫管道
99
1010- [ AMA 討論區] ( https://github.com/vim-tw/ama ) {: target ="_ blank"}
1111- [ Telegram 群組聊天室] ( https://telegram.me/joinchat/CPYvygKUxvnd8xrGsW26MA ) {: target ="_ blank"}
1212- [ Mail list] ( https://groups.google.com/forum/?fromgroups#!forum/vim-taiwan ) {: target ="_ blank"}
1313- IRC: vim-tw@irc.freenode.net
1414
15- ## \#\# 相關連結
15+ ## 相關連結
1616
1717- [ Facebook 社團] ( https://www.facebook.com/groups/vim.tw/ ) {: target ="_ blank"}
1818- [ Vim Taiwan @ GitHub] ( https://github.com/vim-tw ) {: target ="_ blank"}
1919- [ @be _ ; vimmer_ ; tw] ( https://twitter.com/be_vimmer_tw ) {: target ="_ blank"}
2020- [ Vim 推廣貼紙] ( https://gist.github.com/chusiang/b608909bccff6ed62eb7 ) {: target ="_ blank"}
21+
22+ ## 如有 Vim 使用相關問題,歡迎至 <a href =' https://github.com/vim-tw/ama/issues ' target =' _blank ' >AMA</a > 提問
23+
24+ <ul id =" amas " > </ul >
25+
26+ <script >
27+ fetch (' https://api.github.com/repos/vim-tw/ama/issues' ).then (function (response ) {
28+ return response .json ();
29+ })
30+ .then (function (amas ) {
31+ var content = ' ' ;
32+ amas .forEach (function (ama , index , array ) {
33+ if (ama .pull_request !== undefined ){return ;}
34+ content += ` <li><a href="${ ama .html_url } ">${ ama .title } </a> <small>from ${ (new Date (ama .created_at ).toLocaleString ())} </small></li>` ;
35+ });
36+ return content;
37+ })
38+ .catch (function (content ) {
39+ return " <p>請點選上方連結以觀看AMA!</p>" ;
40+ })
41+ .then (function (content ) {
42+ document .getElementById (' amas' ).innerHTML += content;
43+ });
44+ </script >
Original file line number Diff line number Diff line change @@ -29,10 +29,24 @@ body {
2929 color : #e8e8d3 ;
3030 background-color : #151515 ;
3131
32+ h1 ::before {
33+ padding-right : 2rem ;
34+ background-image : url ($pound );
35+ background-repeat : no-repeat ;
36+ background-position : right top ;
37+ }
38+
39+ h2 ::before {
40+ padding-right : 3rem ;
41+ background-image : url ($pound-offset ), url ($pound );
42+ background-repeat : no-repeat , no-repeat ;
43+ background-position : right top , right top ;
44+ }
45+
3246 h1 , h2 , .Divider {
3347 margin : 0 ;
3448 padding : 0 ;
35- color : #70b950 ;
49+ color : $title-color ;
3650 font-size : $font-size ;
3751 font-weight : bold ;
3852
@@ -96,7 +110,7 @@ body {
96110 text-decoration : underline ;
97111
98112 & :hover {
99- color : #70b950 ;
113+ color : $title-color ;
100114 }
101115 }
102116}
You can’t perform that action at this time.
0 commit comments