Minor cleanup
This commit is contained in:
18
pages/soundtracks/latest.go
Normal file
18
pages/soundtracks/latest.go
Normal file
@ -0,0 +1,18 @@
|
||||
package soundtracks
|
||||
|
||||
import (
|
||||
"github.com/aerogo/aero"
|
||||
"github.com/animenotifier/arn"
|
||||
)
|
||||
|
||||
// Latest renders the latest soundtracks.
|
||||
func Latest(ctx *aero.Context) string {
|
||||
// Fetch all eligible tracks
|
||||
tracks := fetchAll()
|
||||
|
||||
// Sort the tracks by date
|
||||
arn.SortSoundTracksLatestFirst(tracks)
|
||||
|
||||
// Render
|
||||
return render(ctx, tracks)
|
||||
}
|
Reference in New Issue
Block a user