repos / pico

pico services - prose.sh, pastes.sh, imgs.sh, feeds.sh, pgs.sh
git clone https://github.com/picosh/pico.git

pico / feeds / html
Eric Bower · 29 Aug 24

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