repos / pico

pico services mono repo
git clone https://github.com/picosh/pico.git

pico / pkg / apps / feeds / html
Eric Bower  ·  2025-08-28

digest.page.tmpl

 1<style>
 2img {
 3    max-width: 100%;
 4    height: auto;
 5}
 6
 7.feeds {
 8    max-width: 100%;
 9}
10</style>
11
12{{if .SizeWarning}}
13<blockquote>
14  <strong>NOTICE:</strong> This email is over the size limit (5MB). Inline content has been enabled to avoid email delivery issues.
15  We recommend splitting your RSS feeds into multiple digests.
16</blockquote>
17{{end}}
18
19{{if .ShowBanner}}
20<blockquote>
21  <strong>NOTICE:</strong> In order to keep this digest email active you must <a href="{{.KeepAliveURL}}">click this link</a>.
22  You have {{.DaysLeft}} days left.
23</blockquote>
24{{end}}
25
26<div class="feeds">
27  {{range .Feeds}}
28  <div style="margin-bottom: 10px;">
29    <h1 style="margin-bottom: 3px;"><a href="{{.Link}}">{{.Title}}</a></h1>
30    <div>{{.Description}}</div>
31  </div>
32
33  <div class="summary">
34    <h2>Summary</h2>
35    {{range .Items}}
36    <ul>
37      <li><a href="{{.Link}}">{{.Title}}</a></li>
38    </ul>
39    {{end}}
40    <hr />
41  </div>
42
43  {{if $.Options.InlineContent}}
44  <div>
45    {{range .Items}}
46    <div>
47      <h1><a href="{{.Link}}">{{.Title}}</a></h1>
48      <div>{{.Description}}</div>
49      <div>{{.Content}}</div>
50    </div>
51    <hr />
52    {{end}}
53  </div>
54  {{end}}
55
56  <hr style="margin: 10px 0;" />
57  {{end}}
58</div>
59
60<blockquote>
61  <a href="{{.UnsubURL}}">unsubscribe</a> to this digest.
62</blockquote>