flounder

A simple gemini site builder
Log | Files | Refs | README | LICENSE

commit bcd973c0a9faed1efc8f67ec3413d2fe267bbdff
parent b9a75b3d67ea9cbe20369a70a9880c634c2b7308
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Wed, 27 Jan 2021 18:27:50 -0800

More following-file cleanup

Diffstat:
Mdb.go | 2+-
Mfeed.go | 2+-
Mtemplates/following.gmi | 3+++
3 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/db.go b/db.go @@ -155,7 +155,7 @@ func getIndexFiles(admin bool) ([]*File, error) { // cache this function 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) } diff --git a/feed.go b/feed.go @@ -28,7 +28,7 @@ func feedsWorker() { for _, user := range users { writeAllFeeds(user) } - time.Sleep(time.Hour * 24) + time.Sleep(time.Hour * 1) } } diff --git a/templates/following.gmi b/templates/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 }}