files/feeds.tmpl.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{{ define "feeds" }} {{ template "head" . }} {{ template "nav" . }} <h3>subscribed feeds</h3> {{ if .LoggedIn }} {{ $length := len .Data }} {{ if eq $length 1 }} <p>you're subscribed to 1 feed {{ else }} <p>you're subscribed to {{ len .Data }} feeds {{ end }} <form method="POST" action="/feeds/submit"> <textarea name="submit" rows="10" cols="50"> {{ range .Data -}} {{ .UpdateURL }} {{ end -}} </textarea> <br> <input type="submit" value="update feeds"> </form> {{ $length := len .Data }} {{ if eq $length 0 }} <pre> ‼️ tutorial ‼️ vore supports one type of action: submitting feeds when you submit feeds: - the feeds are validated and fetched - the feeds are saved to the vore database - your user is subscribed to the feeds once you have subscribed to some feeds, their posts will appear on your <a href="/{{ .Username }}">homepage</a> note that your homepage is public ‼️ here are some feed urls to play with - copy them into the text box above, then press [update feeds] https://100r.co/links/rss.xml https://begriffs.com/atom.xml https://blog.passtheballsocrates.com/feed/ https://cyberia.club/blog/blog.xml https://davebucklin.com/feed.xml https://facklambda.dev/atom.xml https://herman.bearblog.dev/feed/ https://icyphox.sh/blog/feed.xml https://j3s.sh/feed.atom https://katherine.cox-buday.com/rss.xml https://sequentialread.com/rss /)/) ( . .) ( づ♡ </pre> {{ else if gt $length 0 }} <h3>feed details</h3> {{ end }} {{ range .Data }} <pre> {{ .UpdateURL }} title: {{ .Title | trimSpace }} desc: {{ .Description | trimSpace }} items: {{ len .Items }} </pre> {{ end }} {{ else }} <p>⚠️ unauthorized: please log in {{ end }} {{ template "tail" . }} {{ end }}