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
{{ define "feeds" }} {{ template "head" . }} {{ template "nav" . }} <h3>Settings</h3> <p>your timeline: <a href="/{{ .Username }}">vore.website/{{ .Username }}</a> vore changelog: <a href="/changelog">changelog</a> {{ len .Data }} subscriptions: </p> <form method="POST" action="/feeds/submit"> <textarea name="submit" rows="10" cols="50"> {{ range .Data -}} {{ .UpdateURL }} {{ end -}} </textarea> <br> <input type="submit" value="subscribe"> </form> {{ $length := len .Data }} {{ if eq $length 0 }} <p> ‼️ tutorial ‼️ once you have subscribed to some feeds, their posts will appear on your timeline. note that all timelines are public ‼️ here are some feed urls to play with copy them into the text box above and press [subscribe] 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 /)/) ( . .) ( づ♡ </p> {{ else if gt $length 0 }} <p>feed details:</p> {{ end }} {{ range .Data }} <details> <summary>{{ .UpdateURL }}</summary> <p>Title: {{ .Title | trimSpace }} Description: "{{ .Description | trimSpace }}" Refresh: {{ .Refresh.Format "Jan 02, 15:04:05 UTC" }} {{ len .Items }} Items:</p> {{ range .Items }} <details> <summary>{{ .Title }}</summary> <p>Date: {{ .Date }} Link: {{ .Link }} </p> </details> {{ end }} </p> </details> {{ end }} {{ template "tail" . }} {{ end }}