forked from tuna/tuna.moe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
192 lines (181 loc) · 7.31 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
---
layout: default
permalink: /
---
<div id="service">
<div class="container">
<div class="row">
<div class="col-md-12">
<h2># 线上服务 </h2>
</div>
</div>
<div class="row centered" id="service-list">
<div class="col-md-3 col-xs-6">
<a href="https://mirrors.tuna.tsinghua.edu.cn/">{% include pic.html name="service/mirrors" %}</a>
<h4>开源镜像站 <a href="https://mirrors.tuna.tsinghua.edu.cn/"><i class="fa fa-hand-o-right"></i></a></h4>
<p>多快好省</p>
</div>
<div class="col-md-3 col-xs-6">
<a href="{{ "/help/dns/" | prepend: site.baseurl }}">{% include pic.html name="service/dns" %}</a>
<h4>DNS666 <a href="{{ "/help/dns/" | prepend: site.baseurl }}"><i class="fa fa-hand-o-right"></i></a></h4>
<p>101.6.6.6 / 2001:da8::666</p>
</div>
<div class="col-md-3 col-xs-6">
<a href="{{ "/help/ntp/" | prepend: site.baseurl }}">{% include pic.html name="service/ntp" %}</a>
<h4>网络授时 <a href="{{ "/help/ntp/" | prepend: site.baseurl }}"><i class="fa fa-hand-o-right"></i></a></h4>
<p>准时准点</p>
</div>
{% unless site.isthu %}
<div class="col-md-3 col-xs-6">
<a href="https://fishroom.tuna.moe/">{% include pic.html name="service/fishroom" %}</a>
<h4>鱼屋 <a href="https://fishroom.tuna.moe/"><i class="fa fa-hand-o-right"></i></a></h4>
<p>一起聊天</p>
</div>
<div class="col-md-3 col-xs-6">
<a href="https://live.tuna.tsinghua.edu.cn/">{% include pic.html name="service/live" %}</a>
<h4>直播 <a href="https://live.tuna.tsinghua.edu.cn/"><i class="fa fa-hand-o-right"></i></a></h4>
<p>TUNA TV</p>
</div>
<div class="col-md-3 col-xs-6">
<a href="http://dm.tuna.moe/">{% include pic.html name="service/danmaku" %}</a>
<h4>弹幕 <a href="http://dm.tuna.moe/"><i class="fa fa-hand-o-right"></i></a></h4>
<p>互动演讲</p>
</div>
<div class="col-md-3 col-xs-6">
<a href="{{ "/cal/" | prepend: site.baseurl }}">{% include pic.html name="service/calendar" %}</a>
<h4>活动日历 <a href="{{ "/cal/" | prepend: site.baseurl }}"><i class="fa fa-hand-o-right"></i></a></h4>
<p>不要错过活动</p>
</div>
{% endunless %}
<div class="col-md-3 col-xs-6">
<a href="https://github.com/tuna/issues/">{% include pic.html name="service/issues" %}</a>
<h4>Issues <a href="https://github.com/tuna/issues/"><i class="fa fa-hand-o-right"></i></a></h4>
<p>Bug 提交/意见反馈</p>
</div>
</div>
</div><!--/container -->
</div><!--/service -->
<div class="container">
<div class="row">
<div id="recent-events" class="col-md-6 col-md-push-6">
<h2> # 活动公告 </h2>
{% for event in site.categories['event'] limit:5 %}
<div class="event" data-event-date="{{event.date | date: "%F"}}">
<div class="event-title">
<a href="{{ event.url | prepend: site.baseurl }}">
<h4>{{ event.title }}</h4>
</a>
</div>
<div class="event-meta">
<span><strong>时间: </strong>{{event.date | date: "%F"}}{% if event.time %} {{event.time}} {% endif %}</span>
<span><strong>地点:</strong> {{event.place}}</span>
<span class="event-status">
</span>
{% if event.video or event.slides or event.youtube or event.audio %}
<br>
<span><strong>资源链接: </strong></span>
{% if event.audio %}
<a data-toggle="tooltip" title="录音下载" class="label label-info" href="{{event.audio}}" target="_blank"><i class="fa fa-headphones-alt fa-fw"></i></a>
{% endif %}
{% if event.video %}
<a data-toggle="tooltip" title="录像下载" class="label label-info" href="{{event.video}}" target="_blank"><i class="fa fa-video fa-fw"></i></a>
{% endif %}
{% if event.youtube %}
<a data-toggle="tooltip" title="YouTube 在线播放" class="label label-info" href="{{event.youtube}}" target="_blank"><i class="fa fa-youtube fa-fw"></i></a>
{% endif %}
{% if event.slides %}
<a data-toggle="tooltip" title="讲稿下载" class="label label-info" href="{{event.slides}}" target="_blank"><i class="fa fa-file-alt fa-fw"></i></a>
{% endif %}
{% endif %}
</div>
<div class="event-abstract">
{{ event.excerpt | strip_html | truncate: 240, '...'}}
</div>
</div>
{% endfor %}
<div>
<a href={{"/events/"|prepend: site.baseurl}}><i class="fa fa-hand-o-right"></i> 所有活动</a>
</div>
</div>
<div id="recent-posts" class="col-md-6 col-md-pull-6">
<h2> # 最近文章 </h2>
{% for post in site.categories['blog'] limit:5 %}
<div class="post">
<div class="post-title">
<a href="{{ post.url | prepend: site.baseurl }}">
<h4><i class="fa fa-file-text-o"></i> {{ post.title }}</h4>
</a>
</div>
<div class="post-meta">
{{post.author}}, {{post.date | date: "%Y-%-m-%-d"}}
</div>
<div class="post-abstract">
{{ post.excerpt | strip_html | truncate: 240, '...'}}
</div>
</div>
{% endfor %}
<div>
<a href={{"/blog/"|prepend: site.baseurl}}><i class="fa fa-hand-o-right"></i> 所有文章</a>
</div>
</div>
</div>
<div class="row">
<div id="join-tuna" class="col-md-12">
<h2> # 加入我们 </h2>
<h4>订阅邮件列表</h4>
<p>发送任意内容邮件到 <a href="mailto:[email protected]">[email protected]</a>, 并回复确认邮件。</p>
<h4>加入 Telegram 群组</h4>
<p>详见页面底部的联系方式。</p>
<h4>如果你是清华学生</h4>
<p>除了上面的步骤,请填写 <a href="https://join.tuna.tsinghua.edu.cn/">这个表单</a>,并在 <a href="http://shetuan.student.tsinghua.edu.cn/f/ckstzy/20140027">校团委社团部平台</a> 点击 "我要加入" 加入协会。</p>
</div>
</div>
</div>
<div id="join-button" class="visible-xs">
<div class="container">
<div class="row">
<div class="btn-group btn-group-justified col-xs-12">
<a class="btn btn-large btn-success" href="https://join.tuna.tsinghua.edu.cn/"> 加入TUNA / Join Us </a>
</div>
</div>
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){
$('[data-toggle="tooltip"]').tooltip();
var today = function() {
var pad = function (number) {
var r = String(number);
if ( r.length === 1 ) {
r = '0' + r;
}
return r;
}
var _today = new Date();
return Date.parse(
_today.getFullYear().toString() + "-"
+ pad(_today.getMonth()+1) + "-"
+ pad(_today.getDate())
);
}();
$('#recent-events .event').each(function() {
// console.log($(this).attr("data-event-date"));
var event_date = Date.parse($(this).attr("data-event-date")),
label = "";
if (today > event_date) {
label = "<span class='label label-info'>Finished</span>";
} else {
label = "<span class='label label-warning'>Upcoming</span>";
}
$(this).find(".event-status").append(label);
});
});
</script>
<style>
.event-download-button {
width: 10px
}
</style>
<!--
vim: ts=2 sts=2 sw=2 expandtab
-->