Rewritten infinite scrolling

This commit is contained in:
2018-03-13 22:38:26 +01:00
parent 663070cf2a
commit 3e2594ab9f
10 changed files with 108 additions and 189 deletions

10
pages/quotes/fetch.go Normal file
View File

@ -0,0 +1,10 @@
package quotes
import "github.com/animenotifier/arn"
// fetchAll returns all quotes
func fetchAll() []*arn.Quote {
return arn.FilterQuotes(func(quote *arn.Quote) bool {
return !quote.IsDraft && len(quote.Text.English) > 0
})
}