all repos — flounder @ bcd973c0a9faed1efc8f67ec3413d2fe267bbdff

A small site builder for the Gemini protocol

More following-file cleanup
alex wennerberg alex@alexwennerberg.com
Wed, 27 Jan 2021 18:27:50 -0800
commit

bcd973c0a9faed1efc8f67ec3413d2fe267bbdff

parent

b9a75b3d67ea9cbe20369a70a9880c634c2b7308

3 files changed, 5 insertions(+), 2 deletions(-)

jump to
M db.godb.go

@@ -155,7 +155,7 @@ if !admin && info.IsDir() && info.Name() == HiddenFolder {

return filepath.SkipDir } // make this do what it should - if !info.IsDir() { + if !info.IsDir() && info.Name() != followingFile { res := fileFromPath(thepath) result = append(result, &res) }
M feed.gofeed.go

@@ -28,7 +28,7 @@ }

for _, user := range users { writeAllFeeds(user) } - time.Sleep(time.Hour * 24) + time.Sleep(time.Hour * 1) } }
M templates/following.gmitemplates/following.gmi

@@ -1,4 +1,7 @@

# {{.User}}'s Following +A collection of feeds that {{.User}} is following +=> following.txt All feeds + {{ range .FeedItems }} => {{.FeedItem.Link}} {{.Date}} {{.Feed.Title}} -- {{.FeedItem.Title}}{{ end }}