- commit
- b0adfe6
- parent
- 4a41efe
- author
- Eric Bower
- date
- 2022-12-15 14:29:39 +0000 UTC
docs(feeds): marketing page updates
5 files changed,
+43,
-22
+6,
-1
1@@ -78,7 +78,9 @@ func (f *Fetcher) Validate(lastDigest *time.Time, parsed *shared.ListParsedText)
2
3 func (f *Fetcher) RunPost(user *db.User, post *db.Post) error {
4 f.cfg.Logger.Infof("(%s) running feed post (%s)", user.Name, post.Filename)
5+
6 parsed := shared.ListParseText(post.Text, shared.NewNullLinkify())
7+
8 err := f.Validate(post.Data.LastDigest, parsed)
9 if err != nil {
10 f.cfg.Logger.Info(err.Error())
11@@ -118,12 +120,15 @@ func (f *Fetcher) RunPost(user *db.User, post *db.Post) error {
12 }
13
14 func (f *Fetcher) RunUser(user *db.User) error {
15- f.cfg.Logger.Infof("(%s) grabbing all feed posts", user.Name)
16 posts, err := f.db.FindPostsForUser(&db.Pager{Num: 1000}, user.ID, "feeds")
17 if err != nil {
18 return err
19 }
20
21+ if posts.Total > 0 {
22+ f.cfg.Logger.Infof("(%s) found (%d) feed posts", user.Name, posts.Total)
23+ }
24+
25 for _, post := range posts.Data {
26 err = f.RunPost(user, post)
27 if err != nil {
1@@ -0,0 +1,6 @@
2+{{define "footer"}}
3+<footer>
4+ <hr />
5+ published with <a href={{.Site.HomeURL}}>{{.Site.Domain}}</a>
6+</footer>
7+{{end}}
+10,
-10
1@@ -56,26 +56,26 @@
2 <section id="digest-interval">
3 <h2 class="text-xl">
4 <a href="#digest-interval" rel="nofollow noopener">#</a>
5- Diget interval options
6+ Digest interval options
7 </h2>
8 <ul>
9- <li>10min</li>
10- <li>1hour</li>
11- <li>12hour</li>
12- <li>1day</li>
13- <li>7day</li>
14- <li>30day</li>
15+ <li><code>10min</code></li>
16+ <li><code>1hour</code></li>
17+ <li><code>12hour</code></li>
18+ <li><code>1day</code></li>
19+ <li><code>7day</code></li>
20+ <li><code>30day</code></li>
21 </ul>
22 </section>
23
24 <section id="multiple-feeds">
25 <h2 class="text-xl">
26 <a href="#multiple-feeds" rel="nofollow noopener">#</a>
27- Can I create multiple feed lists?
28+ Can I create multiple email digests?
29 </h2>
30 <p>
31- You are free to upload as many feed lists as you like,
32- referencing different email and digest intervals.
33+ You are free to upload as many email digests as you like,
34+ referencing different rss feeds, emails, and digest intervals.
35 </p>
36 </section>
37
1@@ -4,10 +4,9 @@
2 <p class="font-italic">Built and maintained by <a href="https://pico.sh">pico.sh</a>.</p>
3 <div>
4 <a href="/">home</a> |
5- <a href="/spec">spec</a> |
6+ <a href="https://lists.sh/spec">spec</a> |
7 <a href="/ops">ops</a> |
8 <a href="/help">help</a> |
9- <a href="/rss">rss</a> |
10 <a href="https://github.com/picosh/pico">source</a>
11 </div>
12 </footer>
+20,
-9
1@@ -34,9 +34,17 @@
2 </header>
3
4 <main>
5+ <section>
6+ <h2 class="text-lg font-bold">Features</h2>
7+ <ul>
8+ <li>Receive email digests for your RSS feeds</li>
9+ <li>Create 1-to-many email digests</li>
10+ <li>Set digest interval from <a href="/help#digest-interval"><code>10min</code> to <code>30day</code></a></li>
11+ </ul>
12+ </section>
13+
14 <section>
15 <h2 class="text-lg font-bold">Create your account with Public-Key Cryptography</h2>
16- <p>We don't want your email address.</p>
17 <p>To get started, simply ssh into our content management system:</p>
18 <pre>ssh new@{{.Site.Domain}}</pre>
19 <div class="text-sm font-italic note">
20@@ -75,22 +83,25 @@
21 </section>
22
23 <section>
24- <h2 class="text-lg font-bold">Plain text format</h2>
25- <p>A simple specification that is flexible and with no frills.</p>
26- <p><a href="https://lists.sh/spec">specification</a></p>
27+ <h2 class="text-lg font-bold">Privacy</h2>
28+ <p>
29+ We don't do anything with your email besides send an email digest.
30+ If you delete the post containing your email address, we no longer have you email address.
31+ </p>
32 </section>
33
34 <section>
35- <h2 class="text-lg font-bold">Features</h2>
36- <ul>
37- <li>Receive daily email digests</li>
38- </ul>
39+ <h2 class="text-lg font-bold">Plain text format</h2>
40+ <p>A simple list specification that is flexible and with no frills.</p>
41+ <p><a href="https://lists.sh/spec">specification</a></p>
42 </section>
43
44 <section>
45 <h2 class="text-lg font-bold">Roadmap</h2>
46 <ol>
47- <li>Web rss reader</li>
48+ <li>Require user to click link in digest to continue receiving digest</li>
49+ <li>Digest email containing HTML instead of just plain text</li>
50+ <li>Web RSS reader?</li>
51 </ol>
52 </section>
53 </main>