This repository has been archived by the owner on Feb 10, 2019. It is now read-only.
/
index.html
74 lines (68 loc) · 2 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="Description" content="Technology News from the past 8hrs.">
<title>8hrs | Tech, News</title>
<style>
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;line-height:1.5;font-size:1em;margin:10px;-webkit-text-size-adjust:100%}
.list li {
padding: 3px
}
#footer-info li{
display: inline;
}
.domain{
color:burlywood;
font-weight:normal;
}
.discuss{
color: #888;
text-decoration: none;
}
.readable{
text-decoration: none;
border-bottom: 1px solid black;
}
</style>
</head>
<body>
<header>
<h1>Tech News - Past 8hrs</h1>
</header>
<main>
<ol class="list">
{{ range $key, $item := .Data }}
<li>
{{ if $item.Deleted }}
<del>
{{ else if $item.Dead }}
<s>
{{ end }}
{{ if eq $item.URL "" }}
<a class="readable" target="_blank" href="{{ $item.DiscussLink }}">{{ $item.Title }}</a>
{{ else }}
<a class="readable" target="_blank" href="{{ $item.URL }}">{{ $item.Title }} <span class="domain">({{ $item.Domain }})</span></a>
{{ if ne $item.DiscussLink "" }}
<a class="readable" target="_blank" href="{{ $item.DiscussLink }}"><i class="discuss">discuss</i></a>
{{ end }}
{{ end }}
{{ if $item.Deleted }}
</del>
{{ else if $item.Dead }}
</s>
{{ end }}
</li>
{{ end }}
</ol>
</main>
<footer>
<ul id="footer-info">
<li>Visits : {{ .Visits }} |</li>
<li>Version : {{ .Version }} |</li>
<li><a href="https://twitter.com/seshnsesh" target="_blank">Contact</a></li>
</ul>
</footer>
</body>
</html>