-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
63 lines (63 loc) · 1.92 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
<!doctype HTML>
<html>
<head>
<title>Scala News</title>
<meta charset="utf8" />
<meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1,minimum-scale=1,maximum-scale=1">
<link rel="stylesheet" href="public/normalize.css" />
<link rel="stylesheet" href="public/style.css" />
<link href='https://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet'>
</head>
<body>
<header>
<div class="wrap">
<h1><a href="/">Scala News</a></h1>
<nav>
<a class="selected">Posts</a>
<a href="https://twitter.com/scala_cool/lists/scala-voice">Twitter</a>
</nav>
</div>
</header>
<section id="content">
<div class="wrap"></div>
</section>
<div class="ribbon-wrapper right">
<div class="ribbon">
<a href="https://github.com/ScalaCool/scalanews.github.io">github</a>
</div>
</div>
</body>
<script type="text/template" id="news-tpl">
{@each results as news}
<article class="clearfix">
<div class="avatar">
<img src="${news.source.avatar}" />
</div>
<dl class="detail">
<dt class="author">${news.source.name}</dt>
<dd class="saying">
{@if news.link}
<a href="${news.link}" target="_blank">${news.title}</a>
{@else}
${news.title}
{@/if}
</dd>
</dl>
<time>${news.gmt_create.substring(0,10)}</time>
</article>
{@/each}
</script>
<script src="https://cdn.staticfile.org/jquery/3.1.1/jquery.min.js"></script>
<script src="https://cdn.staticfile.org/juicer/0.6.14/juicer-min.js"></script>
<script src="public/index.js"></script>
<script src="https://momentjs.com/downloads/moment.min.js"></script>
<script type="text/javascript">
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?dfcb338d3c2ed49b6a5e26760868e19f";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
</html>