-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
48 lines (48 loc) · 1.82 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">
<title>{{.Name}}</title>
<meta name="generator" content="{{.Generator}}">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css" type="text/css" integrity="sha384-9Z9AuAj0Xi0z7WFOSgjjow8EnNY9wPNp925TVLlAyWhvZPsf5Ks23Ex0mxIrWJzJ" crossorigin="anonymous">
<link rel="stylesheet" href="static/style.css" type="text/css">
<link rel="alternate" href="atom.xml" type="application/atom+xml" title="Atom feed">
<link rel="outline" href="opml.xml" type="text/x-opml" title="OPML">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
</head>
<body>
<header class="header">
<h1 class="title">{{.Name}}</h1>
</header>
{{range .Items}}
<article>
<header>
<h1><a href="{{.Link}}">{{.Title}}</a></h1>
<div>{{if .Author}}by <span class="author">{{.Author}}</span> {{end}}in <a class="site-link" href="{{.SiteLink}}">{{.FeedName}}</a></div>
{{ if .Published -}}
<div>Posted <time datetime="{{.Published | isodate}}">{{.Published | date "January 2, 2006 at 15:04:05 MST"}}</time></div>
{{- end }}
</header>
<div class="article-body">
{{- if .Summary -}}
{{.Summary | sanitize}}
{{- else if .Content -}}
{{.Content | excerpt 500 | sanitize}}
{{- end -}}
</div>
</article>
{{end}}
<div id="pagination">
<span>{{if .PrevPage}}<a href="{{.PrevPage}}">⟵ Previous</a>{{end}}</span><span>{{if .NextPage}}<a href="{{.NextPage}}">Next ⟶</a>{{end}}</span>
</div>
<footer>
<h1>Feeds</h1>
<ul>
{{range .Feeds}}
<li><a href="{{.FeedLink}}" class="feed" aria-hidden="true" title="Feed"></a> <a href="{{.Link}}">{{.Title}}</a></li>
{{end}}
</ul>
</footer>
<address>Generated: {{.Generated | isodate}}</address>
</body>
</html>