-
Notifications
You must be signed in to change notification settings - Fork 89
/
index.html
48 lines (48 loc) · 1.9 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>用于演示的博客</title>
<link rel='stylesheet' href='css/GitHub2.css' type='text/css'/>
<link rel='stylesheet' href='css/style.css' type='text/css'/>
<link rel="stylesheet" href="css/highlight.css">
<script src="js/jquery-2.0.3.min.js"></script>
<script src="js/director.min.js"></script>
<script src="js/ractive.min.js"></script>
<script src="js/marked.min.js"></script>
<script src="config.js"></script>
<script src="http://static.duoshuo.com/embed.js"></script>
<script src="http://apps.bdimg.com/libs/highlight.js/8.6/highlight.min.js"></script>
</head>
<body>
<div id="header"><h1><a href="#/" class="blog_title">用于演示的博客</a></h1>
</div>
<div id="container">
<center><img src="loading.gif" alt="loading" class="loading"></center>
</div>
<script type="text/ractive" id="listTpl">
<ul class="postlist">
{{#posts}}
<li class="postlist"><a href="#post/{{number}}">{{title}}</a>
<span class="datetime">
<!--<img src="{{user.avatar_url}}&s=18" class="avatar">.-->
<a href="{{user.html_url}}">{{user.login}}</a>.
{{formatTime(created_at)}}</span></li>
{{/posts}}
</ul>
{{#prev}}<a href="#p{{page-1}}" class="prev">上一页</a>{{/prev}}
{{#next}}<a href="#p{{page+1}}" class="next">下一页</a>{{/next}}
</script>
<script type="text/ractive" id="detailTpl">
{{#post}}
<h1>{{title}}</h1>
<span class="create_at">
<a href="{{user.html_url}}"><img src="{{user.avatar_url}}&s=18" class="avatar">.{{user.login}}</a>.
发表于 {{formatTime(created_at)}}</span>
<div class="content">{{{markdown2HTML(body)}}}</div>
{{/post}}
</script>
<script src="app.js"></script>
</body>
</html>