repos / pico

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

pico / pkg / apps / feeds / html
Antonio Mika  ·  2025-03-12

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 .ShowBanner}}
13<blockquote>
14  In order to keep this digest email active you must <a href="{{.KeepAliveURL}}">click this link</a>.
15  You have {{.DaysLeft}} days left.
16</blockquote>
17{{end}}
18
19<div class="feeds">
20  {{range .Feeds}}
21  <div style="margin-bottom: 10px;">
22    <h1 style="margin-bottom: 3px;"><a href="{{.Link}}">{{.Title}}</a></h1>
23    <div>{{.Description}}</div>
24  </div>
25
26  <div class="summary">
27    <h2>Summary</h2>
28    {{range .Items}}
29    <ul>
30      <li><a href="{{.Link}}">{{.Title}}</a></li>
31    </ul>
32    {{end}}
33    <hr />
34  </div>
35
36  {{if $.Options.InlineContent}}
37  <div>
38    {{range .Items}}
39    <div>
40      <h1><a href="{{.Link}}">{{.Title}}</a></h1>
41      <div>{{.Description}}</div>
42      <div>{{.Content}}</div>
43    </div>
44    <hr />
45    {{end}}
46  </div>
47  {{end}}
48
49  <hr style="margin: 10px 0;" />
50  {{end}}
51</div>
52
53<blockquote>
54  <a href="{{.UnsubURL}}">unsubscribe</a> to this digest.
55</blockquote>