-
Notifications
You must be signed in to change notification settings - Fork 57
/
Copy pathindex.gohtml
39 lines (39 loc) · 1014 Bytes
/
index.gohtml
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
<!doctype html>
<html>
<head>
<title>Quiet Hacker News</title>
<link rel="icon" type="image/png" href="data:image/png;base64,iVBORw0KGgo=">
<style>
body {
padding: 20px;
}
body, a {
color: #333;
font-family: sans-serif;
}
li {
padding: 4px 0;
}
.host {
color: #888;
}
.time {
color: #888;
padding: 10px 0;
}
.footer, .footer a {
color: #888;
}
</style>
</head>
<body>
<h1>Quiet Hacker News</h1>
<ol>
{{range .Stories}}
<li><a href="{{.URL}}">{{.Title}}</a> <span class="host">({{.Host}})</span></li>
{{end}}
</ol>
<p class="time">This page was rendered in {{.Time}}</p>
<p class="footer">This page is heavily inspired by <a href="https://speak.sh/posts/quiet-hacker-news">Quiet Hacker News</a> and was adapted for a <a href="https://gophercises.com/exercises/quiet_hn">Gophercises Exercise</a>.</p>
</body>
</html>