rss email digests over ssh because you're a cool kid
herald.dunkirk.sh
go
rss
rss-reader
ssh
charm
1<!DOCTYPE html>
2<html>
3
4<head>
5 <meta charset="utf-8">
6 <meta name="viewport" content="width=device-width, initial-scale=1">
7 <style>
8 img {
9 max-width: 100%;
10 height: auto;
11 }
12
13 .feeds {
14 max-width: 100%;
15 }
16
17 .expiry-banner {
18 padding: 15px;
19 margin-bottom: 20px;
20 border-radius: 4px;
21 font-size: 14px;
22 }
23
24 .expiry-urgent {
25 background-color: #fee;
26 border: 2px solid #f44;
27 color: #c00;
28 }
29
30 .expiry-warning {
31 background-color: #ffc;
32 border: 1px solid #fc0;
33 color: #840;
34 }
35 </style>
36</head>
37
38<body>
39 {{if .ShowUrgentBanner}}
40 <div class="expiry-banner expiry-urgent">
41 Your digest expires in {{.DaysUntilExpiry}} days. Click "keep this digest active" below to continue receiving
42 updates or your feed will be deactivated.
43 </div>
44 {{else if .ShowWarningBanner}}
45 <div class="expiry-banner expiry-warning">
46 Your digest expires in {{.DaysUntilExpiry}} days. Click "keep this digest active" below to
47 extend it.
48 </div>
49 {{end}}
50 <div class="feeds">
51 {{range .FeedGroups}}
52 <div style="margin-bottom: 10px;">
53 <h1 style="margin-bottom: 3px;"><a href="{{.FeedURL}}">{{.FeedName}}</a></h1>
54 </div>
55
56 <div class="summary">
57 <h2>Entries</h2>
58 {{range .Items}}
59 <ul>
60 <li><a href="{{.Link}}">{{.Title}}</a></li>
61 </ul>
62 {{end}}
63 </div>
64
65 {{if $.Inline}}
66 <div>
67 {{range .Items}}
68 {{if .SanitizedContent}}
69 <div>
70 <h1><a href="{{.Link}}">{{.Title}}</a></h1>
71 <div>{{.SanitizedContent}}</div>
72 </div>
73 <hr />
74 {{end}}
75 {{end}}
76 </div>
77 {{end}}
78
79 <hr style="margin: 10px 0;" />
80 {{end}}
81 </div>
82</body>
83
84</html>